diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-09-08 19:37:59 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-09-15 17:30:40 +0000 |
| commit | ad460da806a00b2fabfc7bd96fe1bebce0e877f4 (patch) | |
| tree | 6d799238f08105679b3d75f829ad3f3fce36a91a | |
| parent | 65b628699440209dc3c3a087afe95db9fbddfd55 (diff) | |
| download | meta-virtualization-ad460da806a00b2fabfc7bd96fe1bebce0e877f4.tar.gz | |
oe-go-mod-autogen: add -v alias for -d
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rwxr-xr-x | scripts/oe-go-mod-autogen.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/oe-go-mod-autogen.py b/scripts/oe-go-mod-autogen.py index 36feba88..aa155f0f 100755 --- a/scripts/oe-go-mod-autogen.py +++ b/scripts/oe-go-mod-autogen.py | |||
| @@ -668,6 +668,13 @@ def main(): | |||
| 668 | parser.add_argument("-q", "--quiet", | 668 | parser.add_argument("-q", "--quiet", |
| 669 | help = "Hide all output except error messages", | 669 | help = "Hide all output except error messages", |
| 670 | action="store_const", const=logging.ERROR, dest="loglevel") | 670 | action="store_const", const=logging.ERROR, dest="loglevel") |
| 671 | parser.add_argument("-v", action='store_true', dest="verbose", | ||
| 672 | help="verbose") | ||
| 673 | |||
| 674 | args = parser.parse_args() | ||
| 675 | |||
| 676 | if args.verbose: | ||
| 677 | args.loglevel = args.verbose | ||
| 671 | args = parser.parse_args() | 678 | args = parser.parse_args() |
| 672 | 679 | ||
| 673 | logger.setLevel(args.loglevel) | 680 | logger.setLevel(args.loglevel) |
