Skip to content

Commit

Permalink
Merge pull request #744 from diametric/cmdlineopts
Browse files Browse the repository at this point in the history
Restore command line arguments pass-thru.
  • Loading branch information
iXce committed May 7, 2016
2 parents de535f1 + 500b76a commit 0657d73
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pronterface.py
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 0657d73

Please sign in to comment.