Prefix_chars - The set of characters that prefix optional argumentsįromfile_prefix_chars - The set of characters that prefix files from Parents - A list of ArgumentParser objects whose arguments shouldįormatter_class - A class for customizing the help output Usage - The string describing the program usage (default: generated fromĭescription - Text to display before the argument help (default: none)Įpilog - Text to display after the argument help (default: none) Prog - The name of the program (default: sys.argv) Each parameter has its own more detailed description All parameters should be passedĪs keyword arguments. ArgumentParser ( prog = None, usage = None, description = None, epilog = None, parents =, formatter_class = argparse.HelpFormatter, prefix_chars = '-', fromfile_prefix_chars = None, argument_default = None, conflict_handler = 'error', add_help = True, allow_abbrev = True, exit_on_error = True ) ¶Ĭreate a new ArgumentParser object. Getopt - C-style parser for command line optionsĪrgumentParser objects ¶ class argparse. Time - Time access and conversions Next topic Argument abbreviations (prefix matching).argparse - Parser for command-line options, arguments and sub-commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |