Create Beautiful Python Command-line Interface (POSIX C Fashion)
Summary
PyCon UK 2012: Create beautiful command-line interfaces with Python
Command-line Interface Standard
IEEE Std 1003.1 / POSIX
Some Option/Arugement Parser Library for Python
- optparse
- argparse
- docopt (Recommended)
Differences Between Argument, Option and Command
Argument (常规参数)
Angular Bracket ()
|
|
Option (可选参数)
Start with dash(-)
Option Argument (UPPERCASE)
|
|
Command (命令)
some example (一些案例)
|
|
其他
|
|