summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
Commit message (Collapse)AuthorAgeFilesLines
* f-strings everywhereDavid Lord2020-04-191-2/+2
|
* apply pyupgrade --py36-plusDavid Lord2020-04-191-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