]> granicus.if.org Git - esp-idf/commit
idf.py: Add support for action specific options
authorSergei Silnov <sergei.silnov@espressif.com>
Wed, 10 Apr 2019 16:06:52 +0000 (18:06 +0200)
committerSergei Silnov <sergei.silnov@espressif.com>
Mon, 3 Jun 2019 11:07:02 +0000 (13:07 +0200)
commit20156f97023cb68eb6445bf3ca08246587e7045f
treef910819d5c0c4da5473809797a03f4603c43f85d
parentfa36433199d039544f4bc3d5bf39a40f92da7284
idf.py: Add support for action specific options

Changes argument parsing mechanism from argparse to a new one, that provides better support for extensions and options that are only applicable to specific subcommands,

Breaking changes:

1. All global options should go before subcommands, i.e. `idf.py build -C ~/some/project` will not work anymore, only `idf.py -C ~/some/project build` is acceptable
2. To provide multiple values to an option like `--define-cache-entry` it's necessary to repeat option many times, i.e. `idf.py -D entry1 entry2 entry3` will not work, right way is: `idf.py -D entry1 -D entry2 -D entry3`
At the moment there are 3 options like this:  `--define-cache-entry` in base list and `--test-components` and `--test-exclude-components` in the unit test extensions
3. Drops `defconfig` and `bootloader-clean` subcommands

Closes https://github.com/espressif/esp-idf/issues/3570
Closes https://github.com/espressif/esp-idf/issues/3571
examples/system/unit_test/test/CMakeLists.txt
requirements.txt
tools/ci/test_build_system_cmake.sh
tools/idf.py
tools/unit-test-app/README.md
tools/unit-test-app/idf_ext.py