+/- todo, improve argument handling

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-16 18:26:18 +02:00
commit 5cefeb25fc
2 changed files with 23 additions and 17 deletions

View file

@ -434,6 +434,7 @@ class Cdist:
env = os.environ.copy()
env['PATH'] = self.bin_dir + ":" + env['PATH']
# Information required in every manifest
env['__target_host'] = self.target_host
env['__global'] = self.out_dir
@ -630,10 +631,19 @@ def emulator():
# And finally verify parameter
args = parser.parse_args(sys.argv[1:])
# Record parameter
# wh
object_id = args.object_id
del args.object_id
print(args)
# Record parameter
params = vars(args)
for param in params:
value = getattr(args, param)
if value:
print("Writing " + param + " = " + value)
# Record requirements
if "__require" in os.environ:
requirements = os.environ['__require']