Commit fa1a2e39 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add --help support

parent f854a19d
...@@ -11,7 +11,7 @@ set_girar_host $1 && shift ...@@ -11,7 +11,7 @@ set_girar_host $1 && shift
mygetopts() mygetopts()
{ {
if [ "$1" = "-h" ] ; then if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
echog "gacl - acl control for gear repo in $GEARHOST" echog "gacl - acl control for gear repo in $GEARHOST"
echo echo
echog "Usage: gacl [GIRAR] [-b REPONAME] [package] command [params]" echog "Usage: gacl [GIRAR] [-b REPONAME] [package] command [params]"
......
...@@ -56,7 +56,7 @@ check_qf() ...@@ -56,7 +56,7 @@ check_qf()
mygetopts() mygetopts()
{ {
if [ "$1" = "-h" ]; then if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echog "rpmbugs - open bugs in BROWSER" echog "rpmbugs - open bugs in BROWSER"
echog "rpmbugs [-t] [spec] | bug number | package name | -qf command_name | /path/to/file" echog "rpmbugs [-t] [spec] | bug number | package name | -qf command_name | /path/to/file"
echo echo
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
load_mod spec rpm etersoft load_mod spec rpm etersoft
if [ "$1" = "-h" ]; then if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echog "rpmpub - Etersoft specific script for publish gear repo to target ftp dir as src.rpm" echog "rpmpub - Etersoft specific script for publish gear repo to target ftp dir as src.rpm"
echog "Usage: rpmpub [-f] [-r PROJECTVERSION ] [SPEC] [TARGETDIR]" echog "Usage: rpmpub [-f] [-r PROJECTVERSION ] [SPEC] [TARGETDIR]"
echo echo
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
. `dirname $0`/../share/eterbuild/functions/common . `dirname $0`/../share/eterbuild/functions/common
load_mod spec git load_mod spec git
if [ "$1" = "-h" ]; then if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echog "rpmrb (Re Build) - update spec to vermajor.verminor version, build %rel release" echog "rpmrb (Re Build) - update spec to vermajor.verminor version, build %rel release"
echog "Usage: rpmrb [spec] [vermajor][.verminor] [rel]" echog "Usage: rpmrb [spec] [vermajor][.verminor] [rel]"
echog "Example:" echog "Example:"
......
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