summaryrefslogtreecommitdiffstats
path: root/nix-script
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-07-10 18:55:26 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-07-10 18:55:26 +0200
commit51f0e43388d48538fdc7db184b30d5e5ce1f4fdb (patch)
treeb797a99153aa67b34c74a370f93b9068f114f37d /nix-script
parent451e27c832c0877aa7fa0a4fd354012c0357f9ba (diff)
nix-script: Use help text helper functions
Fixes #42
Diffstat (limited to 'nix-script')
-rwxr-xr-xnix-script5
1 files changed, 2 insertions, 3 deletions
diff --git a/nix-script b/nix-script
index 0a9ed80..4acc38d 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
}