summaryrefslogtreecommitdiff
path: root/main/eeshow.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-15 01:42:46 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-15 01:42:46 -0300
commit3354a349dfc3300514da00be1eb94475007e0808 (patch)
treead6a0a133c1199457e770283b4ebdefdf5050c80 /main/eeshow.c
parent34566e8471bce5f74f5951368ef6223cd00577b7 (diff)
downloadeeshow-3354a349dfc3300514da00be1eb94475007e0808.tar.gz
eeshow-3354a349dfc3300514da00be1eb94475007e0808.tar.bz2
eeshow-3354a349dfc3300514da00be1eb94475007e0808.zip
main/: show usage on -h, without complaints (suggested by Roman Pavelka)
Diffstat (limited to 'main/eeshow.c')
-rw-r--r--main/eeshow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/eeshow.c b/main/eeshow.c
index 00b0f62..5af1f43 100644
--- a/main/eeshow.c
+++ b/main/eeshow.c
@@ -71,7 +71,7 @@ int main(int argc, char **argv)
gtk_init(&argc, &argv);
setlocale(LC_ALL, "C"); /* restore sanity */
- while ((c = getopt(argc, argv, "1vE:LN:OPV")) != EOF)
+ while ((c = getopt(argc, argv, "1hvE:LN:OPV")) != EOF)
switch (c) {
case '1':
one_sheet = 1;
@@ -99,6 +99,7 @@ int main(int argc, char **argv)
case 'V':
fprintf(stderr, "%s %sZ\n", version, build_date);
return 1;
+ case 'h':
default:
usage(*argv);
}