Skip to content

Commit

Permalink
[FIX] Update help description for "use" and "--framework-version"
Browse files Browse the repository at this point in the history
Updates according to new features via SAP/ui5-project#649

JIRA: CPOUI5FOUNDATION-722
  • Loading branch information
matz3 committed Sep 5, 2023
1 parent 99a23f2 commit b042542
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/cli/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ build.builder = function(cli) {
array: true
})
.option("framework-version", {
describe: "Overrides the framework version defined by the project",
describe: "Overrides the framework version defined by the project. " +
"Takes the same value as the version part of \"ui5 use\"",
type: "string"
})
.option("cache-mode", {
Expand Down
3 changes: 2 additions & 1 deletion lib/cli/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ serve.builder = function(cli) {
type: "boolean"
})
.option("framework-version", {
describe: "Overrides the framework version defined by the project",
describe: "Overrides the framework version defined by the project. " +
"Takes the same value as the version part of \"ui5 use\"",
type: "string"
})
.option("cache-mode", {
Expand Down
3 changes: 2 additions & 1 deletion lib/cli/commands/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ tree.builder = function(cli) {
})
.option("framework-version", {
describe:
"Overrides the framework version defined by the project",
"Overrides the framework version defined by the project. " +
"Takes the same value as the version part of \"ui5 use\"",
type: "string"
})
.option("cache-mode", {
Expand Down
6 changes: 5 additions & 1 deletion lib/cli/commands/use.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ useCommand.builder = function(cli) {
.positional("framework-info", {
describe: "Framework name, version or both (name@version).\n" +
"Name can be \"SAPUI5\" or \"OpenUI5\" (case-insensitive).\n" +
"Version can be \"latest\" (default), \"1.xx\" or \"1.xx.x\".",
"Version can be \"latest\" (default), a version or range according to the Semantic Versioning specification (https://semver.org/), " +
"or a tag available in the npm registry.\n" +
"For SAP-internal usage the version can also be \"latest-snapshot\", " +
"a version or range ending with -SNAPSHOT, " +
"or a simplified range such as \"1-SNAPSHOT\", \"1.x-SNAPSHOT\" or \"1.108-SNAPSHOT\".",
type: "string"
})
.example("$0 use sapui5@latest", "Use SAPUI5 in the latest available version")
Expand Down

0 comments on commit b042542

Please sign in to comment.