diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-09-25 01:47:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-09-25 01:47:02 +0000 |
commit | 450cc13a5c3d080668d46ea16d865459cc9fcec3 (patch) | |
tree | 13494a5bd671f06dd16dc0383c69951918cae8d8 | |
parent | 5e2806692955b728f70705f9a71f41781db7fd74 (diff) |
dump a useful error message if nothing happened
-rw-r--r-- | src/fstabinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |