Skip to content

Option --source for get_config.py should be mandatory #1997

Closed
@theotherjimmy

Description

@theotherjimmy

It errors out if you do not supply --source.
For example:

$ python tools/get_config.py  -m K64F -t GCC_ARM -v 
Traceback (most recent call last):
  File "tools/get_config.py", line 62, in <module>
    params, macros, features = get_config(options.source_dir, target, toolchain)
  File "/home/jimbri01/src/mbedmicro/mbed/tools/build_api.py", line 85, in get_config
    src_paths = [src_paths[0]] + list(set(src_paths[1:]))
IndexError: list index out of range

should the --source argument be required, or should it default to "."?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions