From ee68e874747fa7b07feb6a009e334f94241f1f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Tue, 18 Oct 2022 23:40:52 +0200 Subject: [PATCH] cleanups --- osc/commandline.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 019b2245..883d7c59 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -343,7 +343,7 @@ class Osc(cmdln.Cmdln): args = slash_split(args) if subcmd == 'll': opts.verbose = True - if subcmd == 'lL' or subcmd == 'LL': + if subcmd in ('lL', 'LL'): opts.verbose = True opts.expand = True @@ -4671,6 +4671,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. if lines: print('\n'.join(lines)) + @cmdln.option('-f', '--force', action='store_true', help='add files even if they are excluded by the exclude_glob config option') def do_add(self, subcmd, opts, *args): @@ -4701,6 +4702,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. else: addFiles([arg], force=opts.force) + def do_mkpac(self, subcmd, opts, *args): """ Create a new package under version control @@ -4718,6 +4720,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. createPackageDir(args[0]) + @cmdln.option('-r', '--recursive', action='store_true', help='If CWD is a project dir then scan all package dirs as well') @cmdln.alias('ar')