Skip to content

Commit 0e6c9db

Browse files
committed
Don't print location for mbed config for easier parsing.
1 parent 1370900 commit 0e6c9db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mbed/mbed.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3367,9 +3367,10 @@ def main():
33673367
very_verbose = pargs.very_verbose
33683368
verbose = very_verbose or pargs.verbose
33693369
pathtype = Repo.pathtype(cwd_root)
3370-
action('Working path \"%s\" (%s)' % (cwd_root, pathtype))
3371-
if pathtype != "program":
3372-
action('Program path \"%s\"' % Program(cwd_root).path)
3370+
if not sys.argv[1].lower() in ["config", "cfg", "conf"]: # `mbed config` should be parse-friendly
3371+
action('Working path \"%s\" (%s)' % (cwd_root, pathtype))
3372+
if pathtype == "library":
3373+
action('Program path \"%s\"' % Program(cwd_root).path)
33733374
status = pargs.command(pargs)
33743375
except ProcessException as e:
33753376
error(

0 commit comments

Comments
 (0)