Commit e801a56632211d38c174e5511212d9310fa541b7

Stefan Sperling 2020-01-13T16:01:04

update usage

diff --git a/got/got.c b/got/got.c
index 38d9e61..cc916e7 100644
--- a/got/got.c
+++ b/got/got.c
@@ -247,7 +247,7 @@ main(int argc, char *argv[])
 __dead static void
 usage(int hflag)
 {
-	fprintf(stderr, "usage: %s [-h] [-V] command [arg ...]\n",
+	fprintf(stderr, "usage: %s [-h] [-V | --version] command [arg ...]\n",
 	    getprogname());
 	if (hflag)
 		list_commands();
diff --git a/tog/tog.c b/tog/tog.c
index 7c13005..5d0c9e6 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -5064,7 +5064,7 @@ list_commands(void)
 __dead static void
 usage(int hflag)
 {
-	fprintf(stderr, "usage: %s [-h] [-V] [command] [arg ...]\n",
+	fprintf(stderr, "usage: %s [-h] [-V | --version] [command] [arg ...]\n",
 	    getprogname());
 	if (hflag)
 		list_commands();