move help to another statement
This commit is contained in:
parent
0c9429ca53
commit
01b16b2d6b
1 changed files with 3 additions and 2 deletions
5
ccc.c
5
ccc.c
|
@ -63,9 +63,10 @@ unsigned long total_dir_size;
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (argc > 1 && strcmp(argv[1], "-h") == 0)
|
||||
die("Usage: ccc filename");
|
||||
if (argc == 2) {
|
||||
if (strcmp(argv[1], "-h") == 0)
|
||||
die("Usage: ccc filename");
|
||||
|
||||
struct stat st;
|
||||
if (lstat(argv[1], &st)) {
|
||||
perror("ccc");
|
||||
|
|
Loading…
Reference in a new issue