Difference between revisions of "Click python library"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
* Installation: <code>[[pip3 install -U click]]</code>
 
* Installation: <code>[[pip3 install -U click]]</code>
  
  import click
+
  [[import]] click
  
  @click.command()
+
  [[@]]click.command()
 
  @click.option("--YourOption", type=click.STRING, required=True)
 
  @click.option("--YourOption", type=click.STRING, required=True)
  
 +
click.choice <ref>https://click.palletsprojects.com/en/8.1.x/options/#choice-options</ref>
 +
 +
== Related ==
 +
* <code>[[import argparse]]</code>
 +
* [[Function decorators in Python]]
  
 
== See also ==
 
== See also ==

Latest revision as of 16:22, 27 September 2023

Advertising: