Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
awit-backstep
awit-backstep-traceback
Commits
482890a2
Commit
482890a2
authored
Apr 01, 2017
by
Robert Spencer
Browse files
Add help option
parent
c4cd604e
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/backstep-traceback-auto
View file @
482890a2
...
...
@@ -17,13 +17,28 @@
#set -e -x
function
show_help
{
cat
<<-
EOF
$0
[-hv] [-o lv-name] [daily|weekly]
-h Show this help.
-v Show verbose debug information & set debug options.
-o Only do a backup of the specified lv.
EOF
}
export
PATH
=
"
$PATH
:/sbin:/usr/sbin"
# Parse options
OPTIND
=
1
while
getopts
":o:v"
OPTION
while
getopts
":
h
o:v"
OPTION
do
case
"
$OPTION
"
in
h
)
show_help
exit
0
;;
o
)
ONLY
=
"
$OPTARG
"
;;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment