Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | shell completion prioritizes option values over new options | Paul Spangler | 2022-03-28 | 1 | -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 commands | Stephen Finucane | 2022-02-20 | 1 | -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 tests | Israel Teneda | 2022-02-19 | 1 | -38/+24 |
| | |||||
* | invoke type casts default values | David Lord | 2021-10-10 | 1 | -7/+9 |
| | |||||
* | return resolved name, not original name | David Lord | 2021-05-19 | 1 | -0/+14 |
| | |||||
* | Fixed inconsistency in forwarding params | Saif807380 | 2021-04-12 | 1 | -0/+22 |
| | |||||
* | deprecation notice appears at front of help and short help | BALaka-18 | 2021-03-31 | 1 | -2/+2 |
| | | | | Co-authored-by: David Lord <davidism@gmail.com> | ||||
* | use super() consistently | Javier Domingo Cansino | 2020-08-08 | 1 | -1/+1 |
| | |||||
* | use canonical command name instead of matched name | ovezovs | 2020-06-30 | 1 | -0/+16 |
| | |||||
* | f-strings everywhere | David Lord | 2020-04-20 | 1 | -2/+2 |
| | |||||
* | apply pyupgrade --py36-plus | David Lord | 2020-04-20 | 1 | -4/+3 |
| | |||||
* | manual cleanup | David Lord | 2020-03-08 | 1 | -5/+5 |
| | |||||
* | apply flake8 | David Lord | 2020-03-06 | 1 | -2/+3 |
| | |||||
* | apply black | David Lord | 2020-03-06 | 1 | -80/+88 |
| | |||||
* | apply reorder-python-imports | David Lord | 2020-03-06 | 1 | -1/+0 |
| | |||||
* | Add no_args_is_help to click.Command | Stephen Rosen | 2018-11-10 | 1 | -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 Shulgin | 2018-05-15 | 1 | -8/+2 |
| | | | | display. | ||||
* | Added deprecation flag to commands | FooBarQuaxx | 2018-05-15 | 1 | -50/+16 |
| | |||||
* | allow specify short width to address cmd formatting | Fletcher Davis | 2018-05-15 | 1 | -1/+7 |
| | | | | | | try to address the too short short_help width as requested in https://github.com/pallets/click/issues/936 | ||||
* | Fix variable precedence | Rémy Greinhofer | 2018-05-14 | 1 | -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 commands | Armin Ronacher | 2018-03-31 | 1 | -2/+16 |
| | |||||
* | Removed deprecated functionality. | Armin Ronacher | 2015-03-31 | 1 | -17/+0 |
| | |||||
* | Added a test for ignoring of unknown options. | Armin Ronacher | 2014-09-09 | 1 | -0/+18 |
| | |||||
* | Fixed `invoked_subcommand`. | Armin Ronacher | 2014-08-22 | 1 | -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 #201 | Armin Ronacher | 2014-08-14 | 1 | -1/+36 |
| | |||||
* | Defer subcommand context creation until later. | Armin Ronacher | 2014-08-13 | 1 | -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 #165 | Armin Ronacher | 2014-06-26 | 1 | -1/+7 |
| | |||||
* | Added a base command for dispatching to other parsers. | Armin Ronacher | 2014-05-16 | 1 | -0/+65 |
| | |||||
* | Added nicer error handling for group commands with arguments. | Armin Ronacher | 2014-05-10 | 1 | -0/+27 |
| | |||||
* | Fixed a bug with forwarding and added a test | Armin Ronacher | 2014-05-10 | 1 | -0/+20 |
| | |||||
* | Added support for default overrides. This fixes #42 | Armin Ronacher | 2014-05-06 | 1 | -0/+18 |
| | |||||
* | Auto truncate short help instead of hiding it. Fixes #53 | Armin Ronacher | 2014-05-02 | 1 | -0/+22 |
| | |||||
* | Added support for command forwarding. | Armin Ronacher | 2014-04-30 | 1 | -0/+18 |