mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
fix arguments
This commit is contained in:
parent
d50bfe66b5
commit
758c31803e
1 changed files with 4 additions and 4 deletions
|
@ -87,14 +87,14 @@ def main():
|
||||||
parser.add_argument("-v", "--verbose", help="print version and exit",
|
parser.add_argument("-v", "--verbose", help="print version and exit",
|
||||||
action="store_true")
|
action="store_true")
|
||||||
parser.add_argument("-a", help="auto build packages",
|
parser.add_argument("-a", help="auto build packages",
|
||||||
type=str, nargs="+", metavar=("script", "source"))
|
type=str, nargs="+", metavar=("script", "sources"))
|
||||||
parser.add_argument("-l", help="list of installed packages",
|
parser.add_argument("-l", help="list of installed packages",
|
||||||
choices="all sbo slack noarch".split(),
|
choices="all sbo slack noarch".split(),
|
||||||
metavar=("all, sbo, slack, noarch"))
|
metavar=("all, sbo, slack, noarch"))
|
||||||
parser.add_argument("-c", help="check if your packages is up to date",
|
parser.add_argument("-c", help="check if your packages is up to date",
|
||||||
type=str, nargs="+", metavar=("sbo, slack"))
|
type=str, nargs="+", metavar=("sbo, slack", "<upgrade>"))
|
||||||
parser.add_argument("-s", help="download, build & install packages",
|
parser.add_argument("-s", help="download, build & install packages",
|
||||||
type=str, nargs="+", metavar=("sbo, slack"))
|
type=str, nargs="+", metavar=("sbo, slack","<package>"))
|
||||||
parser.add_argument("-t", help="packages tracking dependencies from SBo",
|
parser.add_argument("-t", help="packages tracking dependencies from SBo",
|
||||||
type=str, metavar=(""))
|
type=str, metavar=(""))
|
||||||
parser.add_argument("-n", help="view packages from SBo repository",
|
parser.add_argument("-n", help="view packages from SBo repository",
|
||||||
|
@ -172,7 +172,7 @@ def main():
|
||||||
err1_args("".join(args.s[0]), choices)
|
err1_args("".join(args.s[0]), choices)
|
||||||
elif len(args.s) < 2:
|
elif len(args.s) < 2:
|
||||||
if "sbo" in args.s or "slack" in args.s:
|
if "sbo" in args.s or "slack" in args.s:
|
||||||
choices = ["upgrade"]
|
choices = ["package"]
|
||||||
ext_err_args()
|
ext_err_args()
|
||||||
err2_args(choices)
|
err2_args(choices)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue