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
e786c35c
Commit
e786c35c
authored
Apr 01, 2017
by
Nigel Kukard
Browse files
Merge branch 'add-help' into 'master'
Add help option See merge request
!34
parents
c4cd604e
482890a2
Pipeline
#1196
passed with stages
in 2 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/backstep-traceback-auto
View file @
e786c35c
...
...
@@ -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