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
-cj
becomesc=True, j=True
- cape.argread.readflagstar(argv=None)¶
Parse args where
-cf a
becomesc=True, f="a"