aboutsummaryrefslogtreecommitdiff
path: root/src/fstabinfo.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-09-25 01:47:02 +0000
committerMike Frysinger <vapier@gentoo.org>2007-09-25 01:47:02 +0000
commit450cc13a5c3d080668d46ea16d865459cc9fcec3 (patch)
tree13494a5bd671f06dd16dc0383c69951918cae8d8 /src/fstabinfo.c
parent5e2806692955b728f70705f9a71f41781db7fd74 (diff)
dump a useful error message if nothing happened
Diffstat (limited to 'src/fstabinfo.c')
-rw-r--r--src/fstabinfo.c3
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);
}