From 6a031e1dab90d520e6b42832811c2549e133f1e3 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 19 Jun 2018 14:07:14 -0400 Subject: [PATCH] warn if old cmd is used --- lib/cmd.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cmd.js b/lib/cmd.js index ab681ab90..2f09eb5dd 100644 --- a/lib/cmd.js +++ b/lib/cmd.js @@ -203,6 +203,10 @@ class Cmd { .description(__('Upload your dapp to a decentralized storage') + '.') .action(function (env, _options) { i18n.setOrDetectLocale(_options.locale); + if (env === "ipfs" || env === "swarm") { + console.warn(("did you mean " + "embark upload".bold + " ?").underline); + console.warn("In embark 3.1 forwards, the correct command is embark upload and the provider is configured in config/storage.js"); + } _options.env = env || 'development'; _options.logFile = _options.logfile; // fix casing _options.logLevel = _options.loglevel; // fix casing