handle config-path instead of config_path

This commit is contained in:
Yann Leboulanger 2013-08-25 16:14:38 +02:00
parent f956f4b0ba
commit 268ec3c030
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ def parseOpts():
try:
shortargs = 'hqvl:p:c:'
# add gtk/gnome session option as gtk_get_option_group is not wrapped
longargs = 'help quiet verbose loglevel= profile= config_path='
longargs = 'help quiet verbose loglevel= profile= config-path='
longargs += ' class= name= screen= gtk-module= sync g-fatal-warnings'
longargs += ' sm-client-id= sm-client-state-file= sm-disable'
opts = getopt.getopt(sys.argv[1:], shortargs, longargs.split())[0]

View File

@ -62,7 +62,7 @@ def parseOpts():
try:
shortargs = 'hc:'
longargs = 'help config_path='
longargs = 'help config-path='
opts = getopt.getopt(sys.argv[1:], shortargs, longargs.split())[0]
except getopt.error, msg:
print str(msg)