From 7c33aca8be642a382a5cb224761474f5a747beb8 Mon Sep 17 00:00:00 2001 From: Dave Kelsey <25582377+davidkel@users.noreply.github.com> Date: Wed, 6 Apr 2022 09:21:45 +0100 Subject: [PATCH] Update the usage examples to more appropriate versions (#1297) The documentation in vNext will also be updated in line with this change. Signed-off-by: D --- packages/caliper-cli/lib/bindCommand.js | 2 +- packages/caliper-cli/lib/launch/launchManagerCommand.js | 2 +- packages/caliper-cli/lib/launch/launchWorkerCommand.js | 2 +- packages/caliper-cli/lib/unbindCommand.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/caliper-cli/lib/bindCommand.js b/packages/caliper-cli/lib/bindCommand.js index 241a5fe1b..4e344f644 100644 --- a/packages/caliper-cli/lib/bindCommand.js +++ b/packages/caliper-cli/lib/bindCommand.js @@ -35,7 +35,7 @@ module.exports.builder = function (yargs){ 'caliper-bind-args' : {describe: 'Additional arguments to pass to "npm install". Use the "=" notation when setting this parameter', type: 'string' }, 'caliper-bind-file' : {describe: 'Yaml file to override default (supported) package versions when binding an SDK', type: 'string' } }); - yargs.usage('Usage:\n caliper bind --caliper-bind-sut fabric:1.4 --caliper-bind-cwd ./ --caliper-bind-args="-g"'); + yargs.usage('Usage:\n caliper bind --caliper-bind-sut fabric:2.2 --caliper-bind-cwd ./ --caliper-bind-args="-g"'); // enforce the option after these options yargs.requiresArg(['caliper-bind-sut', 'caliper-bind-args', 'caliper-bind-cwd']); diff --git a/packages/caliper-cli/lib/launch/launchManagerCommand.js b/packages/caliper-cli/lib/launch/launchManagerCommand.js index 6a5b44d7e..2b4be469d 100644 --- a/packages/caliper-cli/lib/launch/launchManagerCommand.js +++ b/packages/caliper-cli/lib/launch/launchManagerCommand.js @@ -34,7 +34,7 @@ module.exports.builder = yargs => { 'caliper-bind-args' : {describe: 'Additional arguments to pass to "npm install". Use the "=" notation when setting this parameter', type: 'string' }, 'caliper-bind-file' : {describe: 'Yaml file to override default (supported) package versions when binding an SDK', type: 'string' } }); - yargs.usage('Usage:\n caliper launch manager --caliper-bind-sut fabric:1.4 [other options]'); + yargs.usage('Usage:\n caliper launch manager --caliper-bind-sut fabric:2.2 [other options]'); // enforce singletons yargs.check(checkFn); diff --git a/packages/caliper-cli/lib/launch/launchWorkerCommand.js b/packages/caliper-cli/lib/launch/launchWorkerCommand.js index 752d1c39c..1fbc1125a 100644 --- a/packages/caliper-cli/lib/launch/launchWorkerCommand.js +++ b/packages/caliper-cli/lib/launch/launchWorkerCommand.js @@ -34,7 +34,7 @@ module.exports.builder = yargs => { 'caliper-bind-args' : {describe: 'Additional arguments to pass to "npm install". Use the "=" notation when setting this parameter', type: 'string' }, 'caliper-bind-file' : {describe: 'Yaml file to override default (supported) package versions when binding an SDK', type: 'string' } }); - yargs.usage('Usage:\n caliper launch worker --caliper-bind-sut fabric:1.4 [other options]'); + yargs.usage('Usage:\n caliper launch worker --caliper-bind-sut fabric:2.2 [other options]'); // enforce singletons yargs.check(checkFn); diff --git a/packages/caliper-cli/lib/unbindCommand.js b/packages/caliper-cli/lib/unbindCommand.js index 295085490..c945a5a97 100644 --- a/packages/caliper-cli/lib/unbindCommand.js +++ b/packages/caliper-cli/lib/unbindCommand.js @@ -35,7 +35,7 @@ module.exports.builder = function (yargs){ 'caliper-bind-args' : {describe: 'Additional arguments to pass to "npm remove". Use the "=" notation when setting this parameter', type: 'string' }, 'caliper-bind-file' : {describe: 'Yaml file to override default (supported) package versions when unbinding an SDK', type: 'string' } }); - yargs.usage('Usage:\n caliper unbind --caliper-bind-sut fabric:1.4 --caliper-bind-cwd ./ --caliper-bind-args="-g"'); + yargs.usage('Usage:\n caliper unbind --caliper-bind-sut fabric:2.2 --caliper-bind-cwd ./ --caliper-bind-args="-g"'); // enforce the option after these options yargs.requiresArg(['caliper-bind-sut', 'caliper-bind-args', 'caliper-bind-cwd']);