]> Sergey Matveev's repositories - nnn.git/commitdiff
Shorten option list
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 28 Sep 2019 14:34:24 +0000 (20:04 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 28 Sep 2019 14:34:24 +0000 (20:04 +0530)
README.md
src/nnn.c

index 80037e768057464e41b7e3c0f89abee5927936a8..9b7373d17eb115f6f3b2cbc13f957697c441e021 100644 (file)
--- a/README.md
+++ b/README.md
@@ -194,13 +194,12 @@ Completion scripts for Bash, Fish and Zsh are [available](misc/auto-completion).
 #### Cmdline options
 
 ```
-usage: nnn [-a] [-b key] [-d] [-f] [-H] [-i] [-n] [-o]
-           [-p file] [-r] [-s] [-S] [-t] [-v] [-h] [PATH]
+usage: nnn [OPTIONS] [PATH]
 
 The missing terminal file manager for X.
 
 positional args:
-  PATH   start dir [default: current dir]
+  PATH   start dir [default: .]
 
 optional args:
  -a      use access time
index 17eec56a0ed3489e75a9c5ce64a16507f3d9108f..5e71f9e0aeef800908c67206493d28674e073b14 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4609,11 +4609,10 @@ nochange:
 static void usage(void)
 {
        fprintf(stdout,
-               "%s: nnn [-a] [-b key] [-d] [-f] [-H] [-i] [-n] [-o]\n"
-               "           [-p file] [-r] [-s] [-S] [-t] [-v] [-h] [PATH]\n\n"
+               "%s: nnn [OPTIONS] [PATH]\n\n"
                "The missing terminal file manager for X.\n\n"
                "positional args:\n"
-               "  PATH   start dir [default: current dir]\n\n"
+               "  PATH   start dir [default: .]\n\n"
                "optional args:\n"
                " -a      use access time\n"
                " -b key  open bookmark key\n"