cape.argread: Command-Line Argument Processor¶
argread: Parse command-line arguments and options¶
Parse command-line inputs based on one of two methods. The first method
counts both “-” and “–” as prefixes for keyword names; this is common
among many advanced programs. For example, the two following examples
would be treated as equivalent (assuming it is called by some script
`myScript.py.
- Versions:
2021-11-18
@ddalle: Version 0.1; started
- cape.argread.readflags(argv=None)¶
Parse args where
-cjbecomesc=True, j=True
- cape.argread.readflagstar(argv=None)¶
Parse args where
-cf abecomesc=True, f="a"