Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash add help argument

if [ "$1" == "-h" ]; then
  echo "Usage: `basename $0` [somestuff]"
  exit 0
fi
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #add #argument
ADD COMMENT
Topic
Name
3+2 =