mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Fix long options.
This commit is contained in:
parent
73483ed5a0
commit
4c32621235
@ -303,11 +303,15 @@ class command_line:
|
|||||||
value = args[arg]
|
value = args[arg]
|
||||||
else:
|
else:
|
||||||
value = opt[equals + 1:]
|
value = opt[equals + 1:]
|
||||||
if long_opts[lo][1]:
|
if type(long_opts[lo]) is tuple:
|
||||||
value = path.shell(value)
|
if long_opts[lo][1]:
|
||||||
return lo, long_opts[lo][0], value, arg
|
value = path.shell(value)
|
||||||
|
macro = long_opts[lo][0]
|
||||||
|
else:
|
||||||
|
macro = long_opts[lo]
|
||||||
|
return lo, macro, value, arg
|
||||||
elif opt == lo:
|
elif opt == lo:
|
||||||
return lo, long_opts[lo][0], True, arg
|
return lo, long_opts[lo], True, arg
|
||||||
return None, None, None, arg
|
return None, None, None, arg
|
||||||
|
|
||||||
self.opts = command_line._defaults
|
self.opts = command_line._defaults
|
||||||
@ -352,6 +356,7 @@ class command_line:
|
|||||||
exit_code, proc, output = e.shell(config_sub + ' ' + value)
|
exit_code, proc, output = e.shell(config_sub + ' ' + value)
|
||||||
if exit_code == 0:
|
if exit_code == 0:
|
||||||
value = output
|
value = output
|
||||||
|
print macro, value
|
||||||
self.defaults[macro] = value
|
self.defaults[macro] = value
|
||||||
self.opts[lo[2:]] = value
|
self.opts[lo[2:]] = value
|
||||||
_arch = macro + '_cpu'
|
_arch = macro + '_cpu'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user