summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-07-10 19:10:50 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-07-10 19:10:50 +0200
commitcdc3cd98cccfc56b6c9eeccaad4df18aed268058 (patch)
treeaca8613d2aebc697b96a5d86b43006cc987ffa5a
parente3b9acb1dfe6f3c339cf5a2f12110c3662dd902c (diff)
parent51f0e43388d48538fdc7db184b30d5e5ce1f4fdb (diff)
Merge pull request #48 from matthiasbeyer/fix-#42
nix-script: Use help text helper functions
-rwxr-xr-xnix-script5
1 files changed, 2 insertions, 3 deletions
diff --git a/nix-script b/nix-script
index eb061a2..5c22a90 100755
--- a/nix-script
+++ b/nix-script
@@ -2,14 +2,13 @@
usage() {
cat <<EOS >&2
- $(basename $0) [options] <command> <commandoptions>
+ $(help_synopsis "${BASE_SOURCE[0]}" "[options] <command> <commandoptions>")
-l | --list-commands List all available commands
-v Be verbose
-h Show this help and exit
- (c) 2015 Matthias Beyer
- GPLv2 licensed
+$(help_end)
EOS
}