Commit fbb7e5c7d46ba5854dbb9fe5c26725e6edea28f1

Stefan Sperling 2019-05-11T19:00:13

got add's file path argument is not optional

diff --git a/got/got.1 b/got/got.1
index b9f3d98..ea77117 100644
--- a/got/got.1
+++ b/got/got.1
@@ -286,7 +286,7 @@ List all existing references in the repository.
 .It Fl d Ar name
 Delete the reference with the specified name from the repository.
 .El
-.It Cm add Ar [ file-path ... ]
+.It Cm add Ar file-path ...
 Schedule unversioned files in a work tree for addition to the
 repository in the next commit.
 .It Cm rm Ar file-path
diff --git a/got/got.c b/got/got.c
index 84abce1..5d5cf04 100644
--- a/got/got.c
+++ b/got/got.c
@@ -1886,7 +1886,7 @@ done:
 __dead static void
 usage_add(void)
 {
-	fprintf(stderr, "usage: %s add [ file-path ... ]\n", getprogname());
+	fprintf(stderr, "usage: %s add file-path ...\n", getprogname());
 	exit(1);
 }