handle config-path instead of config_path
This commit is contained in:
parent
9ab803ca63
commit
31a753463b
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ def parseOpts():
|
||||||
try:
|
try:
|
||||||
shortargs = 'hqvl:p:c:'
|
shortargs = 'hqvl:p:c:'
|
||||||
# add gtk/gnome session option as gtk_get_option_group is not wrapped
|
# 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 += ' class= name= screen= gtk-module= sync g-fatal-warnings'
|
||||||
longargs += ' sm-client-id= sm-client-state-file= sm-disable'
|
longargs += ' sm-client-id= sm-client-state-file= sm-disable'
|
||||||
opts = getopt.getopt(sys.argv[1:], shortargs, longargs.split())[0]
|
opts = getopt.getopt(sys.argv[1:], shortargs, longargs.split())[0]
|
||||||
|
|
|
@ -63,7 +63,7 @@ def parseOpts():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
shortargs = 'hc:'
|
shortargs = 'hc:'
|
||||||
longargs = 'help config_path='
|
longargs = 'help config-path='
|
||||||
opts = getopt.getopt(sys.argv[1:], shortargs, longargs.split())[0]
|
opts = getopt.getopt(sys.argv[1:], shortargs, longargs.split())[0]
|
||||||
except getopt.error as msg:
|
except getopt.error as msg:
|
||||||
print(str(msg))
|
print(str(msg))
|
||||||
|
|
Loading…
Add table
Reference in a new issue