let tog's tree and ref commands call their own usage() and not each other's
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
diff --git a/tog/tog.c b/tog/tog.c
index 271c8a9..feaac17 100644
--- a/tog/tog.c
+++ b/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)