Skip to content

Commit

Permalink
Restored command line arguments lost in commit 3ef393e.
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed May 7, 2016
1 parent de535f1 commit 500b76a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pronterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@
" pronterface [OPTION]\n\n"+\
"Options:\n"+\
" -V, --version\t\t\tPrint program's version number and exit\n"+\
" -h, --help\t\t\tPrint this help message and exit\n"
" -h, --help\t\t\tPrint this help message and exit\n"+\
" -a, --autoconnect\t\t\tautomatically try to connect to printer on startup\n"+\
" -c, --conf\t\t\tload this file on startup instead of .pronsolerc ; you may chain config files, if so settings auto-save will use the last specified file\n"+\
" -e, --execute\t\t\texecutes command after configuration/.pronsolerc is loaded ; macros/settings from these commands are not autosaved"

try:
opts, args = getopt.getopt(sys.argv[1:], "hV", ["help", "version"])
opts, args = getopt.getopt(sys.argv[1:], "hVcea", ["help", "version", "conf", "execute", "autoconnect"])
except getopt.GetoptError, err:
print str(err)
print usage
Expand Down

0 comments on commit 500b76a

Please sign in to comment.