fix usage on arg -h

This commit is contained in:
Night Kaly 2024-03-10 21:38:26 +00:00
parent bf6923d24c
commit 44d8df66d1
No known key found for this signature in database
GPG key ID: 8E829D3381CFEBBE

2
ccc.c
View file

@ -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 */