@@ -126,9 +126,8 @@ <h1 class="title">Module <code>mbed_tools_ci_scripts.assert_news</code></h1>
126126def main() -> None:
127127 """Asserts the new PR comprises at least one news file and it adheres to the required standard."""
128128 parser = argparse.ArgumentParser(description="Check correctly formatted news files exist on feature branch.")
129- group = parser.add_mutually_exclusive_group()
130- group.add_argument("-b", "--current-branch", help="Name of the current branch", nargs="?")
131- group.add_argument("-l", "--local", action="store_true", help="perform checks directly on local repository")
129+ parser.add_argument("-b", "--current-branch", help="Name of the current branch", nargs="?")
130+ parser.add_argument("-l", "--local", action="store_true", help="perform checks directly on local repository")
132131 parser.add_argument(
133132 "-v", "--verbose", action="count", default=0, help="Verbosity, by default errors are reported.",
134133 )
@@ -217,9 +216,8 @@ <h2 id="returns">Returns</h2>
217216< pre > < code class ="python "> def main() -> None:
218217 """Asserts the new PR comprises at least one news file and it adheres to the required standard."""
219218 parser = argparse.ArgumentParser(description="Check correctly formatted news files exist on feature branch.")
220- group = parser.add_mutually_exclusive_group()
221- group.add_argument("-b", "--current-branch", help="Name of the current branch", nargs="?")
222- group.add_argument("-l", "--local", action="store_true", help="perform checks directly on local repository")
219+ parser.add_argument("-b", "--current-branch", help="Name of the current branch", nargs="?")
220+ parser.add_argument("-l", "--local", action="store_true", help="perform checks directly on local repository")
223221 parser.add_argument(
224222 "-v", "--verbose", action="count", default=0, help="Verbosity, by default errors are reported.",
225223 )
0 commit comments