Skip to content

Commit 9f16740

Browse files
authored
Merge pull request #559 from embark-framework/warn_wrong_upload_cmd
warn if old upload cmd is used
2 parents 9574562 + 6a031e1 commit 9f16740

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/cmd.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ class Cmd {
203203
.description(__('Upload your dapp to a decentralized storage') + '.')
204204
.action(function (env, _options) {
205205
i18n.setOrDetectLocale(_options.locale);
206+
if (env === "ipfs" || env === "swarm") {
207+
console.warn(("did you mean " + "embark upload".bold + " ?").underline);
208+
console.warn("In embark 3.1 forwards, the correct command is embark upload <environment> and the provider is configured in config/storage.js");
209+
}
206210
_options.env = env || 'development';
207211
_options.logFile = _options.logfile; // fix casing
208212
_options.logLevel = _options.loglevel; // fix casing

0 commit comments

Comments
 (0)