dump a useful error message if nothing happened

This commit is contained in:
Mike Frysinger 2007-09-25 01:47:02 +00:00
parent 5e28066929
commit 450cc13a5c

View File

@ -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);
}