Not support upper case option.
See original GitHub issueimport click
@click.command()
@click.option('-act', default='start')
@click.option('-D', default=False)
def inout(D, act):
print(D, act)
inout()
This code not work: Error: no such option: -d
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Change the capitalization or case of text - Microsoft Support
You can change the capitalization, or case, of selected text in a document by clicking a single button on the Home tab called...
Read more >text-transform - CSS: Cascading Style Sheets - MDN Web Docs
The text-transform CSS property specifies how to capitalize an element's text. It can be used to make text appear in all-uppercase or ...
Read more >User should be able to type in upper case without caps lock
Solved: Hi All, Is there any way to make filed by default upper case in catalog item. If user will type, all letters...
Read more >How to Change Uppercase and Lowercase Text in Microsoft ...
In the menu bar, on the Home tab, click the Change Case icon, which has an uppercase 'A' and lowercase 'a.' Change Case...
Read more >What code should be written to accept Lower and Upper case ...
Use the tolower function to convert your input to lowercase and then you will only need to worry about the lowercase options. ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Since Python variables should be
snake_case
it makes sense for click to convert them to lowercase. You can override the name of the kwarg if you prefer something different.Generally, short (single-letter) options use a single dash, while long options use two dashes. Almost all command line tools do this.
Actually looking at your error again, you define
-d
but your option is named-D
. Keep in mind that options are case sensitive!