Skip to content

Commit 7fc415e

Browse files
authored
Remove assert-news mutually exclusive argument group (#53)
1 parent da5b4f8 commit 7fc415e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mbed_tools_ci_scripts/assert_news.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ def validate_news_files(git: GitWrapper, root_dir: str, news_dir: str) -> None:
9595
def main() -> None:
9696
"""Asserts the new PR comprises at least one news file and it adheres to the required standard."""
9797
parser = argparse.ArgumentParser(description="Check correctly formatted news files exist on feature branch.")
98-
group = parser.add_mutually_exclusive_group()
99-
group.add_argument("-b", "--current-branch", help="Name of the current branch", nargs="?")
100-
group.add_argument("-l", "--local", action="store_true", help="perform checks directly on local repository")
98+
parser.add_argument("-b", "--current-branch", help="Name of the current branch", nargs="?")
99+
parser.add_argument("-l", "--local", action="store_true", help="perform checks directly on local repository")
101100
parser.add_argument(
102101
"-v", "--verbose", action="count", default=0, help="Verbosity, by default errors are reported.",
103102
)

news/20200617.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove assert-news mutually exclusive group

0 commit comments

Comments
 (0)