Add general description for global/subcommand arguments

Fixes #1649
This commit is contained in:
AsamK 2025-01-18 16:59:25 +01:00
parent 407a20d4bb
commit 055a8ee8b9

View file

@ -99,6 +99,9 @@ public class App {
.help("Disable message send log (for resending messages that recipient couldn't decrypt)") .help("Disable message send log (for resending messages that recipient couldn't decrypt)")
.action(Arguments.storeTrue()); .action(Arguments.storeTrue());
parser.epilog(
"The global arguments are shown with 'signal-cli -h' and need to come before the subcommand, while the subcommand-specific arguments (shown with 'signal-cli SUBCOMMAND -h') need to be given after the subcommand.");
var subparsers = parser.addSubparsers().title("subcommands").dest("command"); var subparsers = parser.addSubparsers().title("subcommands").dest("command");
Commands.getCommandSubparserAttachers().forEach((key, value) -> { Commands.getCommandSubparserAttachers().forEach((key, value) -> {