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
"Could not find mbed program in current path. Assuming current dir.\n"
1069
-
"You can fix this by calling \"mbed new .\" in the root of your program")
1070
+
"You can fix this by calling \"mbed new .\"or \"mbed default root .\"in the root of your program.")
1070
1071
1071
1072
# Sets config value
1072
1073
defset_cfg(self, var, val):
@@ -1114,6 +1115,12 @@ def get_os_dir(self):
1114
1115
else:
1115
1116
returnNone
1116
1117
1118
+
defget_mbedlib_dir(self):
1119
+
ifos.path.isdir(os.path.join(self.path, 'mbed')):
1120
+
returnos.path.join(self.path, 'mbed')
1121
+
else:
1122
+
returnNone
1123
+
1117
1124
# Gets mbed tools dir (unified)
1118
1125
defget_tools_dir(self):
1119
1126
mbed_os_path=self.get_os_dir()
@@ -1259,10 +1266,11 @@ def thunk(parsed_args):
1259
1266
@subcommand('new',
1260
1267
dict(name='name', help='Destination name or path'),
1261
1268
dict(name='scm', nargs='?', help='Source control management. Currently supported: %s. Default: git'%', '.join([s.nameforsinscms.values()])),
1269
+
dict(name='--mbedlib', action='store_true', help='Add the mbed library to the program (instead of mbed-os).'),
1262
1270
dict(name='--depth', nargs='?', help='Number of revisions to fetch the mbed OS repository when creating new program. Default: all revisions.'),
1263
1271
dict(name='--protocol', nargs='?', help='Transport protocol when fetching the mbed OS repository when creating new program. Supported: https, http, ssh, git. Default: inferred from URL.'),
1264
1272
help='Create a new program based on the specified source control management. Will create a new library when called from inside a local program. Supported SCMs: %s.'% (', '.join([s.nameforsinscms.values()])))
0 commit comments