fix arguments

This commit is contained in:
Dimitris Zlatanidis 2014-08-26 21:33:57 +03:00
parent d50bfe66b5
commit 758c31803e

View file

@ -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: