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

Add --help flag as alias for -h

parent bf8068b6
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ provides a fast way to see what directories are using your disk space.
=over
=item -h
=item -h, --help
Print a short help message and quit.
......
......@@ -119,7 +119,7 @@ static void argv_parse(int argc, char **argv) {
char *dir = NULL;
static yopt_opt_t opts[] = {
{ 'h', 0, "-h,-?" },
{ 'h', 0, "-h,-?,--help" },
{ 'q', 0, "-q" },
{ 'v', 0, "-v,-V,--version" },
{ 'x', 0, "-x" },
......@@ -148,7 +148,7 @@ static void argv_parse(int argc, char **argv) {
case 0 : dir = val; break;
case 'h':
printf("ncdu <options> <directory>\n\n");
printf(" -h This help message\n");
printf(" -h,--help This help message\n");
printf(" -q Quiet mode, refresh interval 2 seconds\n");
printf(" -v,-V,--version Print version\n");
printf(" -x Same filesystem\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment