commit e99e2d157170987cd8665508a0adcbec58d040b6 from: Christian Weisgerber date: Tue Nov 24 22:38:29 2020 UTC let tog's tree and ref commands call their own usage() and not each other's commit - c42c9805fb36a73a8de6f81318a07617264ca7e0 commit + e99e2d157170987cd8665508a0adcbec58d040b6 blob - 271c8a99135a8ba952cac81f6a4ab6c07a67e10c blob + feaac17d0e83e59b9ef24e80a5f347f16db2f891 --- tog/tog.c +++ tog/tog.c @@ -5559,7 +5559,7 @@ cmd_tree(int argc, char *argv[]) optarg); break; default: - usage_ref(); + usage_tree(); /* NOTREACHED */ } } @@ -5568,7 +5568,7 @@ cmd_tree(int argc, char *argv[]) argv += optind; if (argc > 1) - usage_ref(); + usage_tree(); cwd = getcwd(NULL, 0); if (cwd == NULL) @@ -6295,7 +6295,7 @@ cmd_ref(int argc, char *argv[]) optarg); break; default: - usage_tree(); + usage_ref(); /* NOTREACHED */ } } @@ -6304,7 +6304,7 @@ cmd_ref(int argc, char *argv[]) argv += optind; if (argc > 1) - usage_tree(); + usage_ref(); cwd = getcwd(NULL, 0); if (cwd == NULL)