Skip to content

Commit 69a4dd2

Browse files
committed
Change name of variables based on suggestion
1 parent 0e6c9db commit 69a4dd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mbed/mbed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@
144144
# a list of public SCM service (github/butbucket) which support http, https and ssh schemas
145145
public_scm_services = ['bitbucket.org', 'github.com', 'gitlab.com']
146146

147+
# commands that don't get the current work path shown
148+
skip_workpath_commands = ["config", "cfg", "conf"]
147149

148150
# verbose logging
149151
verbose = False
@@ -3367,7 +3369,7 @@ def main():
33673369
very_verbose = pargs.very_verbose
33683370
verbose = very_verbose or pargs.verbose
33693371
pathtype = Repo.pathtype(cwd_root)
3370-
if not sys.argv[1].lower() in ["config", "cfg", "conf"]: # `mbed config` should be parse-friendly
3372+
if not sys.argv[1].lower() in skip_workpath_commands:
33713373
action('Working path \"%s\" (%s)' % (cwd_root, pathtype))
33723374
if pathtype == "library":
33733375
action('Program path \"%s\"' % Program(cwd_root).path)

0 commit comments

Comments
 (0)