diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-09 23:23:03 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-10 02:57:14 +0200 |
commit | 667b01cb7397360e8a709f85d77c1fd54ff1ce44 (patch) | |
tree | bccf6f49f41b80f96590087890457f0067c9d2e7 | |
parent | 20c8578084314ec716171d0478b0205adddc5166 (diff) | |
download | json-rpc-shell-667b01cb7397360e8a709f85d77c1fd54ff1ce44.tar.gz json-rpc-shell-667b01cb7397360e8a709f85d77c1fd54ff1ce44.tar.xz json-rpc-shell-667b01cb7397360e8a709f85d77c1fd54ff1ce44.zip |
Reorder help message entries a bit
Should be both more useful and more alphabetic this way.
-rw-r--r-- | json-rpc-shell.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c index 7ce8db6..0c0bde7 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -3361,19 +3361,19 @@ parse_program_arguments (struct app_context *ctx, int argc, char **argv, { static const struct opt opts[] = { - { 'd', "debug", NULL, 0, "run in debug mode" }, - { 'h', "help", NULL, 0, "display this help message and exit" }, - { 'V', "version", NULL, 0, "output version information and exit" }, + { 'c', "compact-output", NULL, 0, "do not pretty-print responses" }, + { 'C', "color", "WHEN", OPT_LONG_ONLY, + "colorize output: never, always, or auto" }, { 'n', "null-as-id", NULL, 0, "JSON null is used as an `id'" }, { 'o', "origin", "O", 0, "set the HTTP Origin header" }, - { 'c', "compact-output", NULL, 0, "do not pretty-print responses" }, { 't', "trust-all", NULL, 0, "don't care about SSL/TLS certificates" }, { 'v', "verbose", NULL, 0, "print raw requests and responses" }, - { 'C', "color", "WHEN", OPT_LONG_ONLY, - "colorize output: never, always, or auto" }, { 'w', "write-default-cfg", "FILENAME", OPT_OPTIONAL_ARG | OPT_LONG_ONLY, "write a default configuration file and exit" }, + { 'd', "debug", NULL, 0, "run in debug mode" }, + { 'h', "help", NULL, 0, "display this help message and exit" }, + { 'V', "version", NULL, 0, "output version information and exit" }, { 0, NULL, NULL, 0, NULL } }; |