"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Omar Polo <op@omarpolo.com>
Subject:
got{,admin}.1 and tog.1: fix usage
To:
gameoftrees@openbsd.org
Date:
Sun, 02 Oct 2022 16:55:38 +0200

Download raw body.

Thread
As the manpage states, `-h' and `-V' (or --version) must be given
before the command.  Actually, when using the flags the command is
actually optional.

	% got cat -h
	got: unknown option -- h
	usage: got cat [-P] [-c commit] [-r repository-path] arg ...
	% got -h cat
	usage: got cat [-P] [-c commit] [-r repository-path] arg ...

ok?

diff /home/op/w/got
commit - e02b422b6f7736de0e851b3f8fad812e77e9c6b4
path + /home/op/w/got
blob - 3c54a78702c5a0acbe54c9948029dcd3ebba2ccc
file + got/got.1
--- got/got.1
+++ got/got.1
@@ -22,9 +22,11 @@
 .Nd Game of Trees
 .Sh SYNOPSIS
 .Nm
+.Op Fl hV
+.Oo
 .Ar command
-.Op Fl h
 .Op Ar arg ...
+.Oc
 .Sh DESCRIPTION
 .Nm
 is a version control system which stores the history of tracked files
blob - c633b3177963aca3fa00f1a3474129c3b4441c1b
file + gotadmin/gotadmin.1
--- gotadmin/gotadmin.1
+++ gotadmin/gotadmin.1
@@ -21,9 +21,11 @@
 .Nd Game of Trees repository administration
 .Sh SYNOPSIS
 .Nm
+.Op Fl hV
+.Oo
 .Ar command
-.Op Fl h
 .Op Ar arg ...
+.Oc
 .Sh DESCRIPTION
 .Nm
 is the repository maintenance tool for the
blob - c3488dc79dfbff68596199641118d5f73ffdc650
file + tog/tog.1
--- tog/tog.1
+++ tog/tog.1
@@ -21,9 +21,11 @@
 .Nd Git repository browser
 .Sh SYNOPSIS
 .Nm
-.Op Ar command
-.Op Fl h
+.Op Fl hV
+.Oo
+.Ar command
 .Op Ar arg ...
+.Oc
 .Pp
 .Nm
 .Ar path