Print the help text when the user just calls rc with no arguments.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29764 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-03-28 20:03:43 +00:00
parent 403687d8d2
commit 35f1521039

View File

@ -226,8 +226,10 @@ parse_options(int argc, char *argv[])
}
}
if (args_left < 1)
if (args_left < 1) {
error("no input files");
usage();
}
for (int i = 1; i < argc; ++i) {
if (argv[i] == NULL)