Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the usage examples to more appropriate versions #1297

Merged
merged 1 commit into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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