Difference between revisions of "Argparse"

From wikieduonline
Jump to navigation Jump to search
Line 12: Line 12:
  
 
  parser.add_argument("your_argument")
 
  parser.add_argument("your_argument")
 +
args = parser.parse_args()
  
 
== Related ==
 
== Related ==

Revision as of 11:34, 13 October 2022

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: