From 040e164a3dab6ebcb532226e67e03d9402f22d65 Mon Sep 17 00:00:00 2001 From: James Pannacciulli Date: Sat, 16 Sep 2017 22:15:23 -0700 Subject: add some comments --- pars.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pars.sh b/pars.sh index 2c4020f..fa7a7ce 100644 --- a/pars.sh +++ b/pars.sh @@ -124,6 +124,7 @@ _parssh.ssh_rinput () { # main parssh () { + # print usage info and exit if no arguments provided (( $# )) || { _parssh.usage return $? @@ -133,11 +134,13 @@ parssh () { local _parssh_origopts=$- set -m + # initialize local defaults local _parssh_out_stdout=true local _parssh_out_file=false local _parssh_prepend_host=true local _parssh_ssh=_parssh.ssh + # parse parssh command line arguments while [[ "$1" == -* ]]; do case ${1#-} in -) -- cgit v1.2.3