diff options
-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); } |