summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
Commit message (Collapse)AuthorAgeFilesLines
* shell completion prioritizes option values over new optionsPaul Spangler2022-03-281-0/+59
| | | | | | | Allow option values that start with an option prefix to complete rather than treating them like new options. Don't treat count options as needing a value to complete.
* Store raw help string for commandsStephen Finucane2022-02-201-0/+14
| | | | | | | | | | | | | Some tools, such as sphinx-click [1], may wish to access the full help string for a command including any text after the form feed character (which indicates truncation [2]). Make this possible by storing the help string without truncation and instead truncate when we use this string (i.e. truncate on load, not on store). [1] https://github.com/click-contrib/sphinx-click/issues/56 [2] https://click.palletsprojects.com/en/latest/documentation/#truncating-help-texts Signed-off-by: Stephen Finucane <stephen@that.guru>
* parametrize some command testsIsrael Teneda2022-02-191-38/+24
|
* invoke type casts default valuesDavid Lord2021-10-101-7/+9
|
* return resolved name, not original nameDavid Lord2021-05-191-0/+14
|
* Fixed inconsistency in forwarding paramsSaif8073802021-04-121-0/+22
|
* deprecation notice appears at front of help and short helpBALaka-182021-03-311-2/+2
| | | | Co-authored-by: David Lord <davidism@gmail.com>
* use super() consistentlyJavier Domingo Cansino2020-08-081-1/+1
|
* use canonical command name instead of matched nameovezovs2020-06-301-0/+16
|
* f-strings everywhereDavid Lord2020-04-201-2/+2
|
* apply pyupgrade --py36-plusDavid Lord2020-04-201-4/+3
|
* manual cleanupDavid Lord2020-03-081-5/+5
|
* apply flake8David Lord2020-03-061-2/+3
|
* apply blackDavid Lord2020-03-061-80/+88
|
* apply reorder-python-importsDavid Lord2020-03-061-1/+0
|
* Add no_args_is_help to click.CommandStephen Rosen2018-11-101-0/+10
| | | | | | | | | | The functionality for no_args_is_help, available on MultiCommands, can easily be added on Commands as well. The result is not much more code, and a more consistent interface between MultiCommands and Commands. It's also nice to be able to write a click command `foo` and then just hit `foo` for help, regardless of whether its a Group or Command. closes #1156
* Use formatter width and max command name width to autotrim short help before ↵Oleksandr Shulgin2018-05-151-8/+2
| | | | display.
* Added deprecation flag to commandsFooBarQuaxx2018-05-151-50/+16
|
* allow specify short width to address cmd formattingFletcher Davis2018-05-151-1/+7
| | | | | | try to address the too short short_help width as requested in https://github.com/pallets/click/issues/936
* Fix variable precedenceRémy Greinhofer2018-05-141-0/+48
| | | | | | | | | | | | | | | | | This patch fixes the variable precedence in order to have the default values read last: 1. Values from CLI 2. Values from the environment 3. Default values Tests were added accordingly. Drive-by: * Update `.gitignore` file * Update `tox.ini` to skip missing environments Fixes: #873
* Underscores are now replaced by dashes in commandsArmin Ronacher2018-03-311-2/+16
|
* Removed deprecated functionality.Armin Ronacher2015-03-311-17/+0
|
* Added a test for ignoring of unknown options.Armin Ronacher2014-09-091-0/+18
|
* Fixed `invoked_subcommand`.Armin Ronacher2014-08-221-0/+23
| | | | | | | | | | This is actually a very painful commit to make because it has to change behavior. On the bright side, this has actually been broken from 3.1 and people have not noticed much yet, so maybe it's not a big deal. The docs also kinda left out the invoked subcommands bit so I presume it is fine. This fixes #205
* Handle defaults for context invoke. This fixes #201Armin Ronacher2014-08-141-1/+36
|
* Defer subcommand context creation until later.Armin Ronacher2014-08-131-0/+20
| | | | | | | | This fixes a regression that was introduced with the 3.0 release. This broke well established patters and was never intended to break. This fixes #200
* Improved automatic short help detection. This fixes #165Armin Ronacher2014-06-261-1/+7
|
* Added a base command for dispatching to other parsers.Armin Ronacher2014-05-161-0/+65
|
* Added nicer error handling for group commands with arguments.Armin Ronacher2014-05-101-0/+27
|
* Fixed a bug with forwarding and added a testArmin Ronacher2014-05-101-0/+20
|
* Added support for default overrides. This fixes #42Armin Ronacher2014-05-061-0/+18
|
* Auto truncate short help instead of hiding it. Fixes #53Armin Ronacher2014-05-021-0/+22
|
* Added support for command forwarding.Armin Ronacher2014-04-301-0/+18