mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
oe-go-mod-autogen: add -v alias for -d
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
65b6286994
commit
ad460da806
|
@ -668,6 +668,13 @@ def main():
|
||||||
parser.add_argument("-q", "--quiet",
|
parser.add_argument("-q", "--quiet",
|
||||||
help = "Hide all output except error messages",
|
help = "Hide all output except error messages",
|
||||||
action="store_const", const=logging.ERROR, dest="loglevel")
|
action="store_const", const=logging.ERROR, dest="loglevel")
|
||||||
|
parser.add_argument("-v", action='store_true', dest="verbose",
|
||||||
|
help="verbose")
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if args.verbose:
|
||||||
|
args.loglevel = args.verbose
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
logger.setLevel(args.loglevel)
|
logger.setLevel(args.loglevel)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user