small usage print tweaks everywhere

This commit is contained in:
Franco Fichtner 2019-10-07 11:03:00 +02:00
parent 7aea5285b1
commit f2bb2e6d83
8 changed files with 12 additions and 9 deletions

View File

@ -66,7 +66,7 @@ while getopts bfin:r:t:vy OPT; do
DO_YES="-y"
;;
*)
echo "Usage: man opnsense-bootstrap" >&2
echo "Usage: man ${0##*/}" >&2
exit 1
;;
esac

View File

@ -56,7 +56,7 @@ while getopts a:d:fns: OPT; do
SITE=${OPTARG}
;;
*)
echo "Usage: opnsense-code repo ..." >&2
echo "Usage: man ${0##*/}" >&2
exit 1
;;
esac

View File

@ -32,11 +32,14 @@
.Nd OPNsense fetch progress watcher
.Sh SYNOPSIS
.Nm
.Ar
.Op Fl aq
.Op Fl o Ar file
.Op Fl T Ar timeout
.Ar url
.Sh DESCRIPTION
The
.Nm
utility passes all arguments to
utility passes all known arguments to
.Xr fetch 1
and produces progress output as long as the download runs in the
background.

View File

@ -37,7 +37,7 @@ while getopts ao:qT: OPT; do
a|q|T)
;;
*)
echo "Usage: opnsense-fetch [-aq] [-o file] [-T timeout] url" >&2
echo "Usage: man ${0##*/}" >&2
exit 1
;;
esac

View File

@ -101,7 +101,7 @@ while getopts a:c:defilNp:r:s: OPT; do
SITE=${OPTARG}
;;
*)
echo "Usage: man opnsense-patch" >&2
echo "Usage: man ${0##*/}" >&2
exit 1
;;
esac

View File

@ -49,7 +49,7 @@ while getopts ir: OPT; do
RELEASE="${OPTARG}"
;;
*)
echo "Usage: man opnsense-revert" >&2
echo "Usage: man ${0##*/}" >&2
exit 1
;;
esac

View File

@ -43,7 +43,7 @@ while getopts c:k:p: OPT; do
PREFIX=${OPTARG}
;;
*)
echo "Usage: opnsense-sign -p prefix file" >&2
echo "Usage: man ${0##*/}" >&2
exit 1
;;
esac

View File

@ -253,7 +253,7 @@ while getopts a:BbcdD:efikLl:Mm:N:n:Ppr:Sst:TUuvV OPT; do
exit 0
;;
*)
echo "Usage: man opnsense-update" >&2
echo "Usage: man ${0##*/}" >&2
exit 1
;;
esac