]> git.cameronkatri.com Git - trustcache.git/blobdiff - tc.c
nftw behaves differently on Apple systems
[trustcache.git] / tc.c
diff --git a/tc.c b/tc.c
index f6cc759477aef26c161e51aebd198d5d45e9578b..6142057c32d1a1cf58f94cc6f90b89a880f2169d 100644 (file)
--- a/tc.c
+++ b/tc.c
@@ -41,9 +41,10 @@ main(int argc, char **argv)
 {
        if (argc < 2) {
 help:
-               fprintf(stderr, "Usage: tc append [-u uuid | 0] infile file ...\n"
+               fprintf(stderr, "Usage: tc append [-f flags] [-u uuid | 0] infile file ...\n"
                                                                                "       tc create [-u uuid] [-v version] outfile file ...\n"
-                                                                               "       tc info [-c] [-h] [-e entrynum] file\n\n"
+                                                                               "       tc info [-c] [-h] [-e entrynum] file\n"
+                                                                               "       tc remove [-k] file hash ...\n\n"
                                                                                "See tc(1) for more information\n");
                exit(1);
        }
@@ -56,6 +57,8 @@ help:
                ret = tccreate(argc - 1, argv + 1);
        else if (strcmp(argv[1], "append") == 0)
                ret = tcappend(argc - 1, argv + 1);
+       else if (strcmp(argv[1], "remove") == 0)
+               ret = tcremove(argc - 1, argv + 1);
        else
                fprintf(stderr, "Unknown subcommand %s\n", argv[1]);