fix usage on arg -h
This commit is contained in:
parent
bf6923d24c
commit
44d8df66d1
1 changed files with 1 additions and 1 deletions
2
ccc.c
2
ccc.c
|
@ -36,7 +36,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
char cwd[PATH_MAX];
|
||||
|
||||
if (argc > 1 && strcmp(argv[2], "-h"))
|
||||
if (argc > 1 && strcmp(argv[1], "-h") == 0)
|
||||
die("Usage: ccc filename");
|
||||
|
||||
/* check if it is interactive shell */
|
||||
|
|
Loading…
Reference in a new issue