Commit 0657d73f authored by Guillaume Seguin's avatar Guillaume Seguin

Merge pull request #744 from diametric/cmdlineopts

Restore command line arguments pass-thru.
parents de535f11 500b76af
......@@ -40,10 +40,13 @@ if __name__ == '__main__':
" 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment