match.cli module¶
Command Line Interface for the program.
- Options List:
-h, --help Shows a help message and then exits. -v, --version Shows the program’s version number then and exits. -r, --regex The regular expression to match. -t, --text The string to match the regular expression against.
-
match.cli.parse() → argparse.Namespace[source]¶ Parses the user’s command line arguments using
argparseand then returns back to the caller anargparse.Namespaceobject that contains the user’s input arguments.Returns: An argparse.Namespaceobject from where the parsed argument values can be retrieved.