Skip to content

Commit 59b68d2

Browse files
committed
Don't print location for mbed config for easier parsing.
1 parent 10be76e commit 59b68d2

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
@@ -3356,9 +3356,10 @@ def main():
33563356
very_verbose = pargs.very_verbose
33573357
verbose = very_verbose or pargs.verbose
33583358
pathtype = Repo.pathtype(cwd_root)
3359-
action('Working path \"%s\" (%s)' % (cwd_root, pathtype))
3360-
if pathtype != "program":
3361-
action('Program path \"%s\"' % Program(cwd_root).path)
3359+
if not sys.argv[1].lower() in ["config", "cfg", "conf"]: # `mbed config` should be parse-friendly
3360+
action('Working path \"%s\" (%s)' % (cwd_root, pathtype))
3361+
if pathtype == "library":
3362+
action('Program path \"%s\"' % Program(cwd_root).path)
33623363
status = pargs.command(pargs)
33633364
except ProcessException as e:
33643365
error(

0 commit comments

Comments
 (0)