Difference between revisions of "Usage"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
     [[exit 0]]
 
     [[exit 0]]
 
  }
 
  }
 
+
 
  [ [[-z]] $1 ] && { [[usage]]; }
 
  [ [[-z]] $1 ] && { [[usage]]; }
  
 
== Related ==
 
== Related ==
 
* <code>[[if]]</code>
 
* <code>[[if]]</code>

Revision as of 14:55, 13 November 2021


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

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

Related

Advertising: