Skip to content

Commit

Permalink
Add short options.
Browse files Browse the repository at this point in the history
  • Loading branch information
moyiz committed May 9, 2015
1 parent b844e37 commit 3b8e059
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eg/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,31 @@ def run_eg():
)

parser.add_argument(
'-f',
'--config-file',
help='Path to the .egrc file, if it is not in the default location.'
)

parser.add_argument(
'-e',
'--examples-dir',
help='The location to the examples/ dir that ships with eg'
)

parser.add_argument(
'-c',
'--custom-dir',
help='Path to a directory containing user-defined examples.'
)

parser.add_argument(
'-p',
'--pager-cmd',
help='String literal that will be invoked to page output.'
)

parser.add_argument(
'-l',
'--list',
action='store_true',
help='Show all the programs with eg entries.'
Expand Down

0 comments on commit 3b8e059

Please sign in to comment.