diff --git a/doc/ncdu.pod b/doc/ncdu.pod index bf8b136a636e7f1fb54ad859c40cd5581c1aa27f..2946c3df76f20c04d6db5401dcd2775135b534e3 100644 --- a/doc/ncdu.pod +++ b/doc/ncdu.pod @@ -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. diff --git a/src/main.c b/src/main.c index b1f79e522dc1431ff81c1eae8771298ecd9c9469..c71afc24f4fc27ee2a229c72bf89366612ab1286 100644 --- a/src/main.c +++ b/src/main.c @@ -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");