Difference between revisions of "Usage"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
  
  
  function [[usage]]() {
+
  function usage() {
     echo "Usage:" $(basename $0) Explain options here"
+
     echo "Usage:" $([[basename]] $0) Explain options here"
 
     [[exit 0]]
 
     [[exit 0]]
 
  }
 
  }

Revision as of 10:04, 10 December 2021


function usage() {
    echo "Usage:" $(basename $0) Explain options here"
    exit 0
}

[ -z $1 ] && { usage; }

Related

Advertising: