Add 'bash/usage_help.bash'
This commit is contained in:
1 parent
3b2d675ed6
commit
cc5b71d536
1 file changed
+13
@@ -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