From d97a1074261096e050d78f24118c4df3a6ac3af7 Mon Sep 17 00:00:00 2001 From: davidak Date: Wed, 13 Jul 2016 09:11:32 +0200 Subject: [PATCH] nixos-version: fix syntax error and add -h (#16906) * nixos-version: fix syntax error * nixos-version: add -h parameter --- nixos/modules/installer/tools/nixos-version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/installer/tools/nixos-version.sh b/nixos/modules/installer/tools/nixos-version.sh index e4e4f5c446c8..77a1b458a342 100644 --- a/nixos/modules/installer/tools/nixos-version.sh +++ b/nixos/modules/installer/tools/nixos-version.sh @@ -1,9 +1,10 @@ #! @shell@ case "$1" in - --help) + -h|--help) exec man nixos-version exit 1 + ;; --hash|--revision) echo "@nixosRevision@" ;;