summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Lajszczak <filip@lajszczak.dev>2022-02-22 12:51:01 +0000
committerDavid Thompson <dthompson2@worcester.edu>2022-02-23 08:14:00 -0500
commit4848354e9be7c4f444ef44a586560f71f50a8673 (patch)
tree15b8abf270257c19adf4824490399a08bd00f3d5
parent1a91f3d0568fc095d8b0875c6553ef15b76efa4c (diff)
ui: Make cli options consistent.
* haunt/ui.scm: Option to display version with single character flag was missing for the root command... * haunt/ui/build.scm: ...and was present but undocummented for the build command.
-rw-r--r--haunt/ui.scm2
-rw-r--r--haunt/ui/build.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/haunt/ui.scm b/haunt/ui.scm
index 5af4ee3..55d9229 100644
--- a/haunt/ui.scm
+++ b/haunt/ui.scm
@@ -145,7 +145,7 @@ There is NO WARRANTY, to the extent permitted by law.~%"
(show-haunt-usage))
((or ("-h") ("--help"))
(show-haunt-help))
- (("--version")
+ ((or ("-V") ("--version"))
(show-version-and-exit "haunt"))
(((? option? opt) _ ...)
(format (current-error-port)
diff --git a/haunt/ui/build.scm b/haunt/ui/build.scm
index 5e70580..56d896c 100644
--- a/haunt/ui/build.scm
+++ b/haunt/ui/build.scm
@@ -38,7 +38,7 @@ Compile the site defined in the current directory.~%")
(display "
-h, --help display this help and exit")
(display "
- --version display version information and exit")
+ -V, --version display version information and exit")
(newline))
(define %options