Skip to content

Commit 195304b

Browse files
committed
Implemented a fail-safe mechanism to terminate a debugging session if an unknown CLI option is passed // Resolve platformio#4699
1 parent e4c4f2a commit 195304b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test-driven methodologies, and modern toolchains for unrivaled success.
2525
* Drastically enhanced the speed of project building when operating in verbose mode (`issue #4783 <https://github.com/platformio/platformio-core/issues/4783>`_)
2626
* Upgraded the build engine to the latest version of SCons (4.6.0) to improve build performance, reliability, and compatibility with other tools and systems (`release notes <https://github.com/SCons/scons/releases/tag/4.6.0>`__)
2727
* Enhanced the handling of built-in variables in |PIOCONF| during |INTERPOLATION| (`issue #4695 <https://github.com/platformio/platformio-core/issues/4695>`_)
28+
* Implemented a fail-safe mechanism to terminate a debugging session if an unknown CLI option is passed (`issue #4699 <https://github.com/platformio/platformio-core/issues/4699>`_)
2829
* Rectified an issue where ``${platformio.name}`` erroneously represented ``None`` as the default `project name <https://docs.platformio.org/en/latest/projectconf/sections/platformio/options/generic/name.html>`__ (`issue #4717 <https://github.com/platformio/platformio-core/issues/4717>`_)
2930
* Resolved an issue where the ``COMPILATIONDB_INCLUDE_TOOLCHAIN`` setting was not correctly applying to private libraries (`issue #4762 <https://github.com/platformio/platformio-core/issues/4762>`_)
3031
* Resolved an issue where ``get_systype()`` inaccurately returned the architecture when executed within a Docker container on a 64-bit kernel with a 32-bit userspace (`issue #4777 <https://github.com/platformio/platformio-core/issues/4777>`_)

platformio/debug/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
@click.option("--environment", "-e", metavar="<environment>")
5555
@click.option("--load-mode", type=ProjectOptions["env.debug_load_mode"].type)
5656
@click.option("--verbose", "-v", is_flag=True)
57-
@click.option("--interface", type=click.Choice(["gdb"]))
57+
@click.option("--interface", type=click.Choice(["gdb"]), default="gdb")
5858
@click.argument("__unprocessed", nargs=-1, type=click.UNPROCESSED)
5959
@click.pass_context
6060
def cli(

0 commit comments

Comments
 (0)