diff --git a/coreutils/chroot.c b/coreutils/chroot.c index 791eb97..2679b1f 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c @@ -5,8 +5,8 @@ #include int main(const int argc, char **argv) { - if (argc < 3 || !strcmp(argv[argc - 1], "-h")) { - printf("chroot [dir] [\"command arg\"]\n"); + if (argc < 3 || !strcmp(argv[argc - 1], "--help")) { + printf("chroot [dir] [command arg arg2...]\n"); return 0; } diff --git a/coreutils/mv.c b/coreutils/mv.c index cd3f4c2..86ef165 100644 --- a/coreutils/mv.c +++ b/coreutils/mv.c @@ -31,7 +31,7 @@ int move(const char *src, const char *dst) { } int main(const int argc, const char **argv) { - if (argc <= 2 || !strcmp(argv[argc - 1], "-h")) { + if (argc <= 2 || !strcmp(argv[argc - 1], "--help")) { printf("mv [Src1 src2...] [Dst]\n"); return 0; } diff --git a/coreutils/rm.c b/coreutils/rm.c index 44ac6f6..f513c5a 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c @@ -59,7 +59,7 @@ int rmtree(const char *path) { } int main(const int argc, char **argv) { - if (argc == 1 || !strcmp(argv[argc - 1], "-h")) { + if (argc == 1 || !strcmp(argv[argc - 1], "--help")) { printf("rm [src1 src2...]\n"); return 0; } diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 96ad38f..e730feb 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c @@ -13,7 +13,7 @@ double convert(const char *num) { } int main(const int argc, const char **argv) { - if (argc == 1 || !strcmp(argv[argc - 1], "-h")) { + if (argc == 1 || !strcmp(argv[argc - 1], "--help")) { printf("sleep [num[m - minute / h - hour / d - days]] / [inf (infinity)]\n"); return 0; }