mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +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",
|
||||
action="store_true")
|
||||
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",
|
||||
choices="all sbo slack noarch".split(),
|
||||
metavar=("all, sbo, slack, noarch"))
|
||||
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",
|
||||
type=str, nargs="+", metavar=("sbo, slack"))
|
||||
type=str, nargs="+", metavar=("sbo, slack","<package>"))
|
||||
parser.add_argument("-t", help="packages tracking dependencies from SBo",
|
||||
type=str, metavar=(""))
|
||||
parser.add_argument("-n", help="view packages from SBo repository",
|
||||
|
@ -172,7 +172,7 @@ def main():
|
|||
err1_args("".join(args.s[0]), choices)
|
||||
elif len(args.s) < 2:
|
||||
if "sbo" in args.s or "slack" in args.s:
|
||||
choices = ["upgrade"]
|
||||
choices = ["package"]
|
||||
ext_err_args()
|
||||
err2_args(choices)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue