clarify that bin/cat only takes one argument
This commit is contained in:
parent
fe1f411bdc
commit
462d4af3eb
@ -17,11 +17,16 @@ main(int argc, const char *argv[])
|
||||
struct stat sb;
|
||||
char buf[256];
|
||||
|
||||
if (argc != 2) {
|
||||
if (argc < 2) {
|
||||
fputs("Requires an argument\n", stdout);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argc > 2) {
|
||||
fputs("Too many arguments, expected one\n", stdout);
|
||||
return 1;
|
||||
}
|
||||
|
||||
status = OSStat(argv[1], &sb);
|
||||
if (status != 0) {
|
||||
fputs("Cannot stat file\n", stdout);
|
||||
|
Loading…
Reference in New Issue
Block a user