From cf990b6b7764700d8e42f87f390fa4a33f2fd2a2 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 15 Oct 2011 10:33:37 +0200 Subject: [PATCH] [eit.commands.{graph,list,match,revgraph,search}] add -q -v switch support (short form of --quiet, --verbose) --- server/eit/commands/graph.py | 2 +- server/eit/commands/list.py | 4 ++-- server/eit/commands/match.py | 2 +- server/eit/commands/revgraph.py | 2 +- server/eit/commands/search.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/eit/commands/graph.py b/server/eit/commands/graph.py index 22b0249dd..e27d0125d 100644 --- a/server/eit/commands/graph.py +++ b/server/eit/commands/graph.py @@ -54,7 +54,7 @@ class EitGraph(EitCommand): parser.add_argument("--complete", action="store_true", default=self._complete, help=_('show system packages, build deps, circular deps')) - parser.add_argument("--quiet", action="store_true", + parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) diff --git a/server/eit/commands/list.py b/server/eit/commands/list.py index 522cb6136..c39da17cb 100644 --- a/server/eit/commands/list.py +++ b/server/eit/commands/list.py @@ -47,10 +47,10 @@ class EitList(EitCommand): parser.add_argument("repo", nargs='+', default=None, metavar="", help=_("repository")) - parser.add_argument("--quiet", action="store_true", + parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) - parser.add_argument("--verbose", action="store_true", + parser.add_argument("--verbose", "-v", action="store_true", default=self._verbose, help=_('output more package info')) diff --git a/server/eit/commands/match.py b/server/eit/commands/match.py index 206c1fbb2..b07f7c3b0 100644 --- a/server/eit/commands/match.py +++ b/server/eit/commands/match.py @@ -47,7 +47,7 @@ class EitMatch(EitCommand): parser.add_argument("packages", nargs='+', metavar="", help=_("package name")) - parser.add_argument("--quiet", action="store_true", + parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) diff --git a/server/eit/commands/revgraph.py b/server/eit/commands/revgraph.py index 7e514b6f2..4cae306ef 100644 --- a/server/eit/commands/revgraph.py +++ b/server/eit/commands/revgraph.py @@ -54,7 +54,7 @@ class EitRevgraph(EitCommand): parser.add_argument("--complete", action="store_true", default=self._complete, help=_('show system packages, build deps, circular deps')) - parser.add_argument("--quiet", action="store_true", + parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) diff --git a/server/eit/commands/search.py b/server/eit/commands/search.py index 48721825f..fefb53aba 100644 --- a/server/eit/commands/search.py +++ b/server/eit/commands/search.py @@ -51,7 +51,7 @@ class EitSearch(EitCommand): help=_("search packages in given repository"), dest="inrepo", default=None) - parser.add_argument("--quiet", action="store_true", + parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes'))