]> nmode's Git Repositories - signal-cli/commitdiff
Add general description for global/subcommand arguments
authorAsamK <asamk@gmx.de>
Sat, 18 Jan 2025 15:59:25 +0000 (16:59 +0100)
committerAsamK <asamk@gmx.de>
Sat, 18 Jan 2025 15:59:25 +0000 (16:59 +0100)
Fixes #1649

src/main/java/org/asamk/signal/App.java

index d3d74c3ed49ab31c20de90c674ed30132aac6e1a..e494d201016189cec989f6ef0372962fefc9f1b2 100644 (file)
@@ -99,6 +99,9 @@ public class App {
                 .help("Disable message send log (for resending messages that recipient couldn't decrypt)")
                 .action(Arguments.storeTrue());
 
                 .help("Disable message send log (for resending messages that recipient couldn't decrypt)")
                 .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");
 
         Commands.getCommandSubparserAttachers().forEach((key, value) -> {
         var subparsers = parser.addSubparsers().title("subcommands").dest("command");
 
         Commands.getCommandSubparserAttachers().forEach((key, value) -> {