Skip to content
Snippets Groups Projects
Unverified Commit 11c7d235 authored by Newbyte's avatar Newbyte :snowflake: Committed by Caleb Connolly
Browse files

pmb.parse.arguments: Make -x and -n mutually exclusive in kconfig edit (MR 2346)

It doesn't make sense to both request the nconfig UI and the xconfig UI
at the same time. Make them mutually exclusive.
parent afb036da
No related branches found
No related tags found
1 merge request!2346pmb.kconfig: refactor to remove args
Pipeline #208692 passed
......@@ -688,13 +688,14 @@ def arguments_kconfig(subparser):
# "pmbootstrap kconfig edit"
edit = sub.add_parser("edit", help="edit kernel aport config")
edit.add_argument("--arch", choices=arch_choices, dest="arch", type=lambda x: Arch.from_str(x))
edit.add_argument(
edit_ui_chooser = edit.add_mutually_exclusive_group()
edit_ui_chooser.add_argument(
"-x",
dest="xconfig",
action="store_true",
help="use xconfig rather than menuconfig for kernel configuration",
)
edit.add_argument(
edit_ui_chooser.add_argument(
"-n",
dest="nconfig",
action="store_true",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment