From 2a878fd9ee2d99cf3112768449e4a0c4c3e77d8b Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 4 Jan 2015 22:47:05 -0500 Subject: ui: Display version information. * haunt/config.scm: Delete. * haunt/config.scm.in: New file. * haunt/ui.scm (show-version-and-exit): New procedure. (program-name): Change default value. (haunt-main): Add version option. * haunt/ui/serve.scm (haunt-serve): Likewise. * configure.ac (AC_CONFIG_FILES): Add 'haunt/config.scm'. * .gitignore: Ignore 'haunt/config.scm'. --- haunt/ui/serve.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'haunt/ui') diff --git a/haunt/ui/serve.scm b/haunt/ui/serve.scm index 3ef7ede..078b013 100644 --- a/haunt/ui/serve.scm +++ b/haunt/ui/serve.scm @@ -41,6 +41,8 @@ Start an HTTP server for the current site.~%") (() (serve (haunt-output-directory))) ((or ("-h") ("--help")) (show-serve-help)) + (("--version") + (show-version-and-exit)) (((? option? opt) _ ...) (haunt-error "invalid option: ~a" opt) (exit 1)) -- cgit v1.2.3