Commit a62a91dd authored by Robert Bradshaw's avatar Robert Bradshaw

Fix --embed argument parsing.

parent 21903ec9
...@@ -85,12 +85,10 @@ def parse_command_line(args): ...@@ -85,12 +85,10 @@ def parse_command_line(args):
options.use_listing_file = 1 options.use_listing_file = 1
elif option in ("-+", "--cplus"): elif option in ("-+", "--cplus"):
options.cplus = 1 options.cplus = 1
elif option.startswith("--embed"): elif option == "--embed":
ix = option.find('=') Options.embed = "main"
if ix == -1: elif option.startswith("--embed="):
Options.embed = "main" Options.embed = options[8:]
else:
Options.embed = option[ix+1:]
elif option.startswith("-I"): elif option.startswith("-I"):
options.include_path.append(get_param(option)) options.include_path.append(get_param(option))
elif option == "--include-dir": elif option == "--include-dir":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment