Add 'bash/usage_help.bash'
This commit is contained in:
13
bash/usage_help.bash
Normal file
13
bash/usage_help.bash
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
Usage()
|
||||||
|
{
|
||||||
|
echo -e "\nUsage: $(basename "$0") [-a|-b|-c]"
|
||||||
|
echo "Anything else you'd like to say, explain arguments, etc."
|
||||||
|
}
|
||||||
|
|
||||||
|
# Somewhere soon we do argument parsing and hit -h|--help:
|
||||||
|
Usage # Yes, it's that simple.
|
||||||
|
|
||||||
|
# Or find an invalid argument:
|
||||||
|
Usage # Still easy, and now we've reused code.
|
||||||
Reference in New Issue
Block a user