From 450cc13a5c3d080668d46ea16d865459cc9fcec3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 25 Sep 2007 01:47:02 +0000 Subject: dump a useful error message if nothing happened --- src/fstabinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fstabinfo.c b/src/fstabinfo.c index 922a0c9a..a5dd887e 100644 --- a/src/fstabinfo.c +++ b/src/fstabinfo.c @@ -150,5 +150,8 @@ int fstabinfo (int argc, char **argv) break; } + if (result != EXIT_SUCCESS && argc == optind) + fprintf (stderr, "%s: no arguments specified\n", argv[0]); + exit (result); } -- cgit v1.2.3