summaryrefslogtreecommitdiffstats
path: root/nix-script
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-07-12 19:07:03 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-07-15 21:56:16 +0200
commit55fbaf548e63ce40df51957163c7215e397eb1be (patch)
treef1114458ed11afc4635f909a35b74d73aeb8c7fd /nix-script
parent724f683055ecf224bbe66bdc4dfacf1938ad90a1 (diff)
Add debugging flag in main file
Diffstat (limited to 'nix-script')
-rwxr-xr-xnix-script8
1 files changed, 8 insertions, 0 deletions
diff --git a/nix-script b/nix-script
index 308cb3c..3bca4e9 100755
--- a/nix-script
+++ b/nix-script
@@ -6,6 +6,7 @@ usage() {
-l | --list-commands List all available commands
-v Be verbose
+ -d Debugging output (enables -v)
-h Show this help and exit
$(help_end)
@@ -76,6 +77,13 @@ do
shift_one_more
;;
+ "-d")
+ export VERBOSE=1
+ export DEBUG=1
+ stdout "Debugging enabled. Implicitely turned on verbosity"
+ shift_one_more
+ ;;
+
"-h" )
usage
exit 1