1
1

Add --help flag as alias for -h

https://dev.yorhel.nl/ncdu/bug/125
Этот коммит содержится в:
Yorhel 2018-12-16 10:47:51 +01:00
родитель bf8068b65e
Коммит 93583e645f
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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");