Commit e99e2d157170987cd8665508a0adcbec58d040b6

Christian Weisgerber 2020-11-24T22:38:29

let tog's tree and ref commands call their own usage() and not each other's

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)