Skip to content

Commit

Permalink
Update the usage examples to more appropriate versions (#1297)
Browse files Browse the repository at this point in the history
The documentation in vNext will also be updated in line with this
change.

Signed-off-by: D <d_kelsey@uk.ibm.com>
  • Loading branch information
davidkel committed Apr 6, 2022
1 parent 66e8386 commit 7c33aca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/caliper-cli/lib/bindCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand Down
2 changes: 1 addition & 1 deletion packages/caliper-cli/lib/launch/launchManagerCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/caliper-cli/lib/launch/launchWorkerCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/caliper-cli/lib/unbindCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand Down

0 comments on commit 7c33aca

Please sign in to comment.