login

<     >

2015-06-19 20:13:10 (UTC-03:00)

Marcel Rodrigues <marcelgmr@gmail.com>

Reformat help message and mention --save-cwd.

diff --git a/rover.c b/rover.c
index 7761579..0663553 100644
--- a/rover.c
+++ b/rover.c
@@ -816,12 +816,13 @@ main(int argc, char *argv[])
             return 0;
         } else if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) {
             printf(
-                "Usage: rover [DIRECTORY [DIRECTORY [DIRECTORY [...]]]]\n"
-                "  or:  rover [OPTION]\n"
-                "Browse current working directory or the ones specified.\n\n"
-                "Options:\n"
-                "  -h, --help       print this help message and exit\n"
-                "  -v, --version    print program version and exit\n\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"
+                "       Print this help message and exit.\n\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"
             );