Difference between revisions of "Argparse"

From wikieduonline
Jump to navigation Jump to search
Line 18: Line 18:
  
 
== See also ==
 
== See also ==
 +
* {{import}}
 
* {{argparse}}
 
* {{argparse}}
  
 
[[Category:Python]]
 
[[Category:Python]]

Revision as of 19:48, 26 March 2024

wikipedia:Argparse

store_true


import argparse
parser = argparse.ArgumentParser (allow_abbrev=False, usage=usage())
parser.add_argument("your_argument")
args = parser.parse_args()

Related

See also

Advertising: