mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Added short "-h" help option for PlatformIO and sub-commands
This commit is contained in:
@ -24,6 +24,7 @@ PlatformIO 2.0
|
||||
`atmelavr <http://docs.platformio.org/en/latest/platforms/atmelavr.html#boards>`__
|
||||
platform
|
||||
(`pull #256 <https://github.com/platformio/platformio/pull/256>`_)
|
||||
* Added short ``-h`` help option for PlatformIO and sub-commands
|
||||
* Updated ``tool-teensy`` for `Teensy <http://docs.platformio.org/en/latest/platforms/teensy.html>`__
|
||||
platform
|
||||
(`issue #268 <https://github.com/platformio/platformio/issues/268>`_)
|
||||
|
@ -18,7 +18,7 @@ Options
|
||||
.. program:: platformio
|
||||
|
||||
.. option::
|
||||
--force, - f
|
||||
--force, -f
|
||||
|
||||
Force to accept any confirmation prompts. This option allows to avoid an issue
|
||||
with :ref:`faq_troubleshooting_pioblocksprompt`
|
||||
@ -29,7 +29,7 @@ with :ref:`faq_troubleshooting_pioblocksprompt`
|
||||
Show the version of PlatformIO
|
||||
|
||||
.. option::
|
||||
--help
|
||||
--help, -h
|
||||
|
||||
Show help for the available options and commands
|
||||
|
||||
|
@ -51,7 +51,8 @@ class PlatformioCLI(click.MultiCommand): # pylint: disable=R0904
|
||||
raise AttributeError()
|
||||
|
||||
|
||||
@click.command(cls=PlatformioCLI)
|
||||
@click.command(cls=PlatformioCLI,
|
||||
context_settings=dict(help_option_names=["-h", "--help"]))
|
||||
@click.version_option(__version__, prog_name="PlatformIO")
|
||||
@click.option("--force", "-f", is_flag=True,
|
||||
help="Force to accept any confirmation prompts")
|
||||
|
Reference in New Issue
Block a user