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:
parent
403687d8d2
commit
35f1521039
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user