Skip to content

Remove default -m and -i options for project.py #3537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions tools/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,12 @@ def main():

parser.add_argument("-m", "--mcu",
metavar="MCU",
default='LPC1768',
type=argparse_force_uppercase_type(targetnames, "MCU"),
help="generate project for the given MCU ({})".format(
', '.join(targetnames)))

parser.add_argument("-i",
dest="ide",
default='uvision',
type=argparse_force_lowercase_type(
toolchainlist, "toolchain"),
help="The target IDE: %s"% str(toolchainlist))
Expand Down Expand Up @@ -215,14 +213,6 @@ def main():
cache = Cache(True, True)
cache.cache_descriptors()

# Clean Export Directory
if options.clean:
if exists(EXPORT_DIR):
rmtree(EXPORT_DIR)

for mcu in options.mcu:
zip_proj = not bool(options.source_dir)

# Target
if not options.mcu:
args_error(parser, "argument -m/--mcu is required")
Expand All @@ -231,6 +221,14 @@ def main():
if not options.ide:
args_error(parser, "argument -i is required")

# Clean Export Directory
if options.clean:
if exists(EXPORT_DIR):
rmtree(EXPORT_DIR)

for mcu in options.mcu:
zip_proj = not bool(options.source_dir)

if (options.program is None) and (not options.source_dir):
args_error(parser, "one of -p, -n, or --source is required")
# Export to selected toolchain
Expand Down