From: Bastian Dehn Date: Sun, 5 Jan 2020 15:08:31 +0000 (+0100) Subject: change: help option to h for help X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=670a579b5f9fcd65e293d949755e42441fdc7478;p=discspan.git change: help option to h for help --- diff --git a/discspan.c b/discspan.c index d05d06b..5e60f81 100644 --- a/discspan.c +++ b/discspan.c @@ -138,7 +138,8 @@ void usage() printf(" -5\t\tEntspricht der Größe einer Single Layer DVD: "); printf("4.700.000.000 Bytes\n"); printf(" -c\t\tEntspricht der Größe einer CD: 734.003.200 Bytes\n"); - printf(" -f \tOption zur Größenangabe in Bytes\n\n"); + printf(" -f \tOption zur Größenangabe in Bytes\n"); + printf(" -h\t\tZeigt diese Hilfe an.\n\n"); } /** @@ -229,9 +230,9 @@ int main(int argc, char *argv[]) case 'f': split = atoll(optarg); break; - case '?': + case 'h': usage(); - return 1; + return 0; break; } }