diff --git a/HISTORY.rst b/HISTORY.rst index bcdc4578..a35eea41 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,12 @@ Release History =============== +2.2.1 (2015-??-??) +------------------ + +* Fixed incorrect arguments handling for `platformio serialports monitor `_ command + (`issue #248 `_) + 2.2.0 (2015-07-01) ------------------ diff --git a/platformio/__init__.py b/platformio/__init__.py index 4cb7841d..01977854 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -1,7 +1,7 @@ # Copyright (C) Ivan Kravets # See LICENSE for details. -VERSION = (2, 2, 0) +VERSION = (2, 2, "1.dev0") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" diff --git a/platformio/commands/serialports.py b/platformio/commands/serialports.py index 5c241d03..820f4b4a 100644 --- a/platformio/commands/serialports.py +++ b/platformio/commands/serialports.py @@ -68,7 +68,7 @@ def serialports_list(json_output): @click.option("--quiet", is_flag=True, help="Diagnostics: suppress non-error messages, default=Off") def serialports_monitor(**kwargs): - sys.argv = sys.argv[3:] + sys.argv = sys.argv[2:] if not kwargs['port']: for item in get_serialports():