Skip to content

Commit

Permalink
Fix target check and use "all" as default target
Browse files Browse the repository at this point in the history
  • Loading branch information
upsuper committed Jul 19, 2016
1 parent 49f7f54 commit c3e20eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/geckolib/gecko_bindings/tools/regen.py
Expand Up @@ -376,7 +376,7 @@ def builds_for(target_name, kind):

def main():
parser = argparse.ArgumentParser(description=DESCRIPTION)
parser.add_argument('--target',
parser.add_argument('--target', default="all",
help='The target to build, either "structs" or "bindings"')
parser.add_argument('--kind',
help='Kind of build')
Expand All @@ -398,7 +398,7 @@ def main():
print("\"{}\" doesn't seem to be a directory".format(args.objdir))
return 1

if args.target != COMMON_BUILD_KEY and args.target != "all" and args.target not in COMPILATION_TARGETS:
if (args.target != "all" and args.target not in COMPILATION_TARGETS) or args.target == COMMON_BUILD_KEY:
print("{} is not a valid compilation target.".format(args.target))
print("Valid compilation targets are:")
for target in COMPILATION_TARGETS.keys():
Expand Down

0 comments on commit c3e20eb

Please sign in to comment.