Skip to content

Commit 1e42087

Browse files
committed
app: project: Merge --ignore-branches and --no-ignore-branches
There's a dedicated argparse action to replace the two separate ones. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent 826595e commit 1e42087

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/west/app/project.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -911,20 +911,11 @@ def do_add_parser(self, parser_adder):
911911
)
912912
parser.add_argument(
913913
'--ignore-branches',
914-
default=None,
915-
action='store_true',
914+
action=argparse.BooleanOptionalAction,
916915
help='''skip output for projects with checked out
917916
branches and clean working trees if the branch is
918917
at the same commit as the last "west update"''',
919918
)
920-
parser.add_argument(
921-
'--no-ignore-branches',
922-
dest='ignore_branches',
923-
action='store_false',
924-
help='''overrides a previous --ignore-branches
925-
or any compare.ignore-branches configuration
926-
option''',
927-
)
928919
parser.add_argument(
929920
'-f',
930921
'--format',

0 commit comments

Comments
 (0)