Difference between revisions of "Usage"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
function usage() { | function usage() { | ||
− | echo "Usage: | + | echo "Usage: $([[basename]] $0) Explain options here" |
[[exit 0]] | [[exit 0]] | ||
} | } | ||
− | [ [[-z]] $1 ] && { [[usage]]; } | + | [[ [[-z]] $1 ]] && { [[usage]]; } |
== Related == | == Related == | ||
Line 14: | Line 14: | ||
* <code>[[help]]</code> | * <code>[[help]]</code> | ||
* [[exit 0]], [[trap]], [[set -e]] | * [[exit 0]], [[trap]], [[set -e]] | ||
+ | * [[test]] | ||
+ | * [[set]] | ||
== See also == | == See also == | ||
+ | * {{set}} | ||
* {{if}} | * {{if}} | ||
* {{argparse}} | * {{argparse}} | ||
[[Category:Computing]] | [[Category:Computing]] |
Latest revision as of 10:24, 3 September 2022
Advertising: