summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-09-03 22:19:12 +0200
committerYorhel <git@yorhel.nl>2018-09-03 22:19:55 +0200
commitd95c65b032e0b4b0ff727673755eabc44a51e8ff (patch)
tree2fe90fefc0e0f6a2c9fa127539d613171d163b6e
parent9f2350bbc9ac9ef8a4629f50c2fc6a82f55b9f8e (diff)
Add -V and --version as alias to -v
-rw-r--r--doc/ncdu.pod2
-rw-r--r--src/main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/ncdu.pod b/doc/ncdu.pod
index 3783d3c..bf8b136 100644
--- a/doc/ncdu.pod
+++ b/doc/ncdu.pod
@@ -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.
diff --git a/src/main.c b/src/main.c
index 3dae1e1..b1f79e5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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");