Regional_Push

Argparse_template

Jun 28th, 2022 (edited)
751
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None
  1. import argparse # this will help create CLI elements
  2.  
  3. # this is the name of the parser object that will parse the commandline
  4. parser = argparse.ArgumentParser(description="")
  5.  
  6. # the arguments will be coded in the following format
  7. # parser.add_argument('--insert_name_here',nargs='?', const='bar',default=False, help='')
  8.  
  9. parser.add_argument('--',nargs='?', const='bar',default=False, help= "")
  10.  
  11. # unsure about the function of this one
  12. args = parser.parse_args()
  13.  
RAW Paste Data Copied