PREV INDEX NEXT

Author: Unknown
Subject: Command Line Argument Follow Up
Date: Saturday, 05 Sep 2020, 13:24:36

If I have the following argument where /hello and /test dont exist: "/c/cs323/Hwk1/fiend /hello test -f" the output is:

fiend: invalid argument: -f

But, If I remove the -f, the output of "/c/cs323/Hwk1/fiend /hello /test" is 

fiend: stat(/hello) Failed
fiend: stat(test) Failed

Shouldn't the output of the first command be:

fiend: stat(/hello) Failed
fiend: stat(test) Failed
fiend: invalid argument: -f

Since the files are valid but fiend just failed?
PREV INDEX NEXT