Doug Hellmann is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

dhellmann / CommandLineApp http://doughellmann.com/projects/CommandLineApp/

The CommandLineApp class makes creating command line applications in Python as simple as defining callbacks to handle options when they appear in 'sys.argv'.

Clone this repository (size: 134.9 KB): HTTPS / SSH
hg clone https://bitbucket.org/dhellmann/commandlineapp
hg clone ssh://hg@bitbucket.org/dhellmann/commandlineapp

CommandLineApp overview

Recent commits See more »

Base class for building command line applications.

The CommandLineApp class makes creating command line applications as
simple as defining callbacks to handle options when they appear in
'sys.argv'.

To do:

- switch to gnu_getopt?
- check command line arguments