Skip to content

Commit

Permalink
Disambiguate some options, fix #96
Browse files Browse the repository at this point in the history
  • Loading branch information
keleshev committed Mar 5, 2013
1 parent 296b90f commit dc4b7d0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions examples/git/git.py
Expand Up @@ -3,9 +3,13 @@
usage: git [--version] [--exec-path=<path>] [--html-path]
[-p|--paginate|--no-pager] [--no-replace-objects]
[--bare] [--git-dir=<path>] [--work-tree=<path>]
[-c name=value]
[-c <name>=<value>] [--help]
<command> [<args>...]
git [--help]
options:
-c <name=value>
-h, --help
-p, --paginate
The most commonly used git commands are:
add Add file contents to the index
Expand All @@ -29,6 +33,9 @@
args = docopt(__doc__,
version='git version 1.7.4.4',
options_first=True)
print('global arguments:')
print(args)
print('command arguments:')

argv = [args['<command>']] + args['<args>']
if args['<command>'] == 'add':
Expand Down

0 comments on commit dc4b7d0

Please sign in to comment.