diff --git a/server/eit/commands/query.py b/server/eit/commands/query.py index 2e949cf34..622967595 100644 --- a/server/eit/commands/query.py +++ b/server/eit/commands/query.py @@ -68,8 +68,9 @@ class EitQuery(EitCommand): needed_parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) - needed_parser.add_argument("inrepo", action="store_const", - const=None) + needed_parser.add_argument("--in", metavar="", + help=_("query into given repository only"), + dest="inrepo", default=None) needed_parser.add_argument("packages", nargs='+', metavar="", help=_("package names")) @@ -86,8 +87,9 @@ class EitQuery(EitCommand): revdeps_parser.add_argument("--bdeps", "-b", action="store_true", default=False, help=_('include build dependencies')) - revdeps_parser.add_argument("inrepo", action="store_const", - const=None) + revdeps_parser.add_argument("--in", metavar="", + help=_("query into given repository only"), + dest="inrepo", default=None) revdeps_parser.add_argument("packages", nargs='+', metavar="", help=_("package names"))