move cmdline option conversion to dbus format to optionparse
This commit is contained in:
parent
c04b6aeb87
commit
75d68b8d2b
@ -95,13 +95,6 @@ if __name__ == '__main__':
|
||||
# (the -x argument for example)
|
||||
if OPTIONS.working_directory is None:
|
||||
OPTIONS.working_directory = ORIGCWD
|
||||
optionslist = {}
|
||||
for opt, val in list(OPTIONS.__dict__.items()):
|
||||
if type(val) == type([]):
|
||||
val = ' '.join(val)
|
||||
if val == True:
|
||||
val = 'True'
|
||||
optionslist[opt] = val and '%s'%val or ''
|
||||
optionslist = dbus.Dictionary(dbus_options, signature='ss')
|
||||
if OPTIONS.new_tab:
|
||||
dbg('Requesting a new tab')
|
||||
|
Loading…
Reference in New Issue
Block a user