You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dict(name='on', nargs='?', help='Turn repository caching on. Will use either the default or the user specified cache directory.'),
2784
2784
dict(name='off', nargs='?', help='Turn repository caching off. Note that this doesn\'t purge cached repositories. See "purge".'),
2785
-
dict(name='dir', nargs='?', help='Set cache directory. Set to "default" to let mbed CLI determine the cache directory location. Typically this is "~/.mbed/mbed-cache/" on UNIX, or "%%userprofile%%/.mbed/mbed-cache/" on Windows.'),
2785
+
dict(name='dir', nargs='?', help='Set cache directory. Set to "default" to let mbed CLI determine the cache directory location (%s/mbed-cache/).'%Global().path),
2786
2786
dict(name='ls', nargs='?', help='List cached repositories and their sizes.'),
2787
2787
dict(name='purge', nargs='?', help='Purge cached repositories. Note that this doesn\'t turn caching off'),
2788
2788
help='Repository cache management\n\n',
@@ -2844,8 +2844,9 @@ def get_size_(path):
2844
2844
action("Purge complete!")
2845
2845
elifcmd=="false":
2846
2846
action("Repository cache is %s."%str(cfg['cache']).upper())
2847
-
action("Cache location \"%s\""%cfg['cache_base'])
2847
+
action("Cache location \"%s\""%cfg['cache_dir'])
2848
2848
else:
2849
+
printcmd
2849
2850
error("Invalid cache command. Please see \"mbed cache --help\" for valid commands.")
0 commit comments