Commit 7ef2344f authored by Vitaly Lipatov's avatar Vitaly Lipatov

add support for --help

parent d7218158
...@@ -155,6 +155,8 @@ if [ $# -lt 1 ]; then ...@@ -155,6 +155,8 @@ if [ $# -lt 1 ]; then
fatal "Use -h for help." fatal "Use -h for help."
fi fi
[ "$1" = "--help" ] && mygetopts -h
# Sisyphus by default # Sisyphus by default
MENV=SS MENV=SS
set_target_type $(basename `pwd`) set_target_type $(basename `pwd`)
...@@ -182,6 +184,8 @@ detect_target_env ...@@ -182,6 +184,8 @@ detect_target_env
parse_cmd_pre_spec() parse_cmd_pre_spec()
{ {
[ "$1" = "--help" ] && mygetopts -h
# hack for check spec or src.rpm presence in command line: skip spec detecting # hack for check spec or src.rpm presence in command line: skip spec detecting
if echo $@ | grep -q \.spec || echo $@ | grep -q \.src.rpm ; then if echo $@ | grep -q \.spec || echo $@ | grep -q \.src.rpm ; then
parse_cmd_pre "$@" parse_cmd_pre "$@"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment