2015-06-19 20:29:36 (UTC-03:00)
Marcel Rodrigues <marcelgmr@gmail.com>
Use more conventional syntax for usage help.
diff --git a/rover.c b/rover.c index 0663553..b18b1e0 100644 --- a/rover.c +++ b/rover.c @@ -816,12 +816,12 @@ main(int argc, char *argv[]) return 0; } else if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { printf( - "Usage: rover [(-s|--save-cwd) FILE] [DIR [DIR [DIR [...]]]]\n" + "Usage: rover [-s|--save-cwd FILE] [DIR [DIR [DIR [...]]]]\n" " Browse current directory or the ones specified.\n" " If FILE is given, write last visited path to it.\n\n" - " or: rover (-h|--help)\n" + " or: rover -h|--help\n" " Print this help message and exit.\n\n" - " or: rover (-v|--version)\n" + " or: rover -v|--version\n" " Print program version and exit.\n\n" "See rover(1) for more information.\n\n" "Rover homepage: <https://github.com/lecram/rover>.\n"