Skip to content
Snippets Groups Projects
Commit d95c65b0 authored by Yorhel's avatar Yorhel
Browse files

Add -V and --version as alias to -v

parent 9f2350bb
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ provides a fast way to see what directories are using your disk space.
Print a short help message and quit.
=item -v
=item -v, -V, --version
Print ncdu version and quit.
......
......@@ -121,7 +121,7 @@ static void argv_parse(int argc, char **argv) {
static yopt_opt_t opts[] = {
{ 'h', 0, "-h,-?" },
{ 'q', 0, "-q" },
{ 'v', 0, "-v" },
{ 'v', 0, "-v,-V,--version" },
{ 'x', 0, "-x" },
{ 'e', 0, "-e" },
{ 'r', 0, "-r" },
......@@ -150,7 +150,7 @@ static void argv_parse(int argc, char **argv) {
printf("ncdu <options> <directory>\n\n");
printf(" -h This help message\n");
printf(" -q Quiet mode, refresh interval 2 seconds\n");
printf(" -v Print version\n");
printf(" -v,-V,--version Print version\n");
printf(" -x Same filesystem\n");
printf(" -e Enable extended information\n");
printf(" -r Read only\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment