]> git.nbdom.net Git - nb.git/commitdiff
--help-html
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 22 Jan 2015 01:28:23 +0000 (01:28 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 22 Jan 2015 01:28:23 +0000 (01:28 +0000)
etc/vim/checkscript.sh [changed mode: 0644->0755]
etc/vim/checkspell.sh [changed mode: 0644->0755]
etc/vim/choosesig.pl [changed mode: 0644->0755]
etc/vim/templates/bash.tt
etc/vim/templates/daemon.tt
etc/vim/vim-shortcurts [changed mode: 0644->0755]
etc/vim/vim-shortcurts-stdin [changed mode: 0644->0755]
etc/vim/vim-shortcurts.new [changed mode: 0644->0755]
etc/vim/vim-template-0.3.0.zip [changed mode: 0644->0755]
etc/vim/vimplaterc [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index b0709a0658da101608248a4969c7ed54b48d766c..7a60f976a7f4c5326a0cdb72b4b81fdf4a82c7b3 100644 (file)
@@ -40,9 +40,9 @@ ${NAME}
 
 Example shell script with embedded POD documentation
 
-  -v, --verbose
-  --debug        
-  -h, --help      Print this help
+  -v, --verbose   Print verbose mode
+  -d, --debug     Print debug messages   
+  -h, --help      Print this help (alternatives: --man, --help-html|-hh)
 
 =head1 DESCRIPTION
 
@@ -98,10 +98,11 @@ while [ $# -gt 0 ]; do
 
     -*help|-h) usage | pod2text --width 250; exit 0 ;;
     --man) usage | pod2man | man -l -; exit 0 ;;
+    --help-html|-hh) usage | pod2html; exit 0 ;;
 
     --verbose|-v) VERBOSE=$(($VERBOSE+1)) ;;
 
-    --debug) DEBUG=$(($DEBUG+1)) ;;
+    --debug|-d) DEBUG=$(($DEBUG+1)) ;;
 
     *) echo "Unknow option: $1 at $0!"; exit -1; ;;
 
index 80d69ee5a2bf6a8b1b0d8c64ce55b43bb5434b35..145150289f48072b0f879fa785a47e389c37ddb4 100644 (file)
@@ -18,7 +18,7 @@
 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
 
 DAEMON=/usr/sbin/YOUR
-OPTS=""
+ARGS=""
 
 NAME=`basename $DAEMON`
 PIDFILE="/var/run/$NAME.pid"
@@ -37,7 +37,7 @@ case "$1" in
     log_daemon_msg "Starting" "${NAME}"
     start-stop-daemon --start --background --quiet \
       --pidfile $PIDFILE --make-pidfile \
-      --exec $DAEMON -- $OPTS
+      --exec $DAEMON -- $ARGS
     log_end_msg $?
     ;;
   stop)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)