diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-06-05 14:31:25 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-06-05 14:36:22 +0200 |
commit | 851cc9f8818a9240977b6ec5bfc27b106e6b7c05 (patch) | |
tree | 13c29e7cbf276acfb1fca859603866899c26b8f0 | |
parent | 72a31ad44dc7957fcf0e521c4a977c89b805973c (diff) |
Use help_synopsis()
-rwxr-xr-x | nix-script-diff-generations.sh | 3 | ||||
-rwxr-xr-x | nix-script-ls-profiles.sh | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/nix-script-diff-generations.sh b/nix-script-diff-generations.sh index dd3945d..8ad5e58 100755 --- a/nix-script-diff-generations.sh +++ b/nix-script-diff-generations.sh @@ -4,12 +4,11 @@ source $(dirname ${BASH_SOURCE[0]})/nix-utils.sh usage() { cat <<EOS - diff-generations [options] <generation a> <generation b> + $(help_synopsis "${BASH_SOURCE[0]}" "[-s | -u] [-n <a..b>] [-h]") -s Use system generation for diffing -u Use system generation for diffing -n a..b Diff these generations - -v Be verbose -h Show this help and exit EOS diff --git a/nix-script-ls-profiles.sh b/nix-script-ls-profiles.sh index 778ea7d..8ed8956 100755 --- a/nix-script-ls-profiles.sh +++ b/nix-script-ls-profiles.sh @@ -6,13 +6,12 @@ profiledir=/nix/var/nix/profiles usage() { cat <<EOS >&2 - ls-profiles <--system|-s> <--user|-u> <--system-profiles|-p> <-v> <-h> + $(help_synopsis "${BASH_SOURCE[0]}" "[--system | -s] [--user | -u] [-n] [-h]") --system | -s | Show system profiles --user | -u | Show user profiles --system-profiles | -p | Show other system profiles -n | Show only profile numbers - -v | Be verbose -h | Show this help and exit EOS } |