From 9b71f3595b0418aa128beffc35bab459364b9560 Mon Sep 17 00:00:00 2001 From: alichinese Date: Sat, 20 Apr 2024 16:44:22 +0800 Subject: [PATCH] generate: revert the default behavior of the command-line menu * for the command line of oebuild generate, we still retain the default behavior for invoking, which is more user-friendly. Signed-off-by: alichinese --- src/oebuild/app/plugins/generate/generate.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/oebuild/app/plugins/generate/generate.py b/src/oebuild/app/plugins/generate/generate.py index 8710799..1da8b7a 100644 --- a/src/oebuild/app/plugins/generate/generate.py +++ b/src/oebuild/app/plugins/generate/generate.py @@ -194,14 +194,6 @@ class Generate(OebuildCommand): This parameter is used to toolchain name ''') - parser.add_argument('-menuconfig', - '--menuconfig', - dest='menuconfig', - action="store_true", - help=''' - This parameter is used to menuconfig - ''') - parser.add_argument('-at', '--auto_build', dest='auto_build', @@ -229,7 +221,7 @@ class Generate(OebuildCommand): ) sys.exit(-1) - if '-mc' in unknown: + if len(unknown) == 0: config_path = self.create_kconfig(yocto_dir) if not os.path.exists(config_path): sys.exit(0) -- Gitee