Skip to content

Commit e451d07

Browse files
committed
refactor: Reorder CLI parameter docs list (set --cache higher)
1 parent 04ea2b3 commit e451d07

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

packages/cli/lib/cli/commands/build.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ build.builder = function(cli) {
8585
default: false,
8686
type: "boolean"
8787
})
88+
.option("cache", {
89+
describe:
90+
"Cache mode to use for building UI5 projects. " +
91+
"The 'Default' behavior is to always use the cache if available. 'Force' uses the cache only " +
92+
"(if it's unavailable or invalid, the build fails). 'ReadOnly' does not create or update any " +
93+
"cache but makes use of a cache if available. 'Off' does not use any cache and always triggers " +
94+
"a rebuild of the project",
95+
type: "string",
96+
default: "Default",
97+
choices: ["Default", "Force", "ReadOnly", "Off"],
98+
})
8899
.option("create-build-manifest", {
89100
describe: "Store build metadata in a '.ui5' directory in the build destination, " +
90101
"allowing reuse of the build result in other builds",
@@ -133,17 +144,6 @@ build.builder = function(cli) {
133144
defaultDescription: "Default",
134145
choices: ["Default", "Force", "Off"],
135146
})
136-
.option("cache", {
137-
describe:
138-
"Cache mode to use for building UI5 projects. " +
139-
"The 'Default' behavior is to always use the cache if available. 'Force' uses the cache only " +
140-
"(if it's unavailable or invalid, the build fails). 'ReadOnly' does not create or update any " +
141-
"cache but makes use of a cache if available. 'Off' does not use any cache and always triggers " +
142-
"a rebuild of the project",
143-
type: "string",
144-
default: "Default",
145-
choices: ["Default", "Force", "ReadOnly", "Off"],
146-
})
147147
.option("experimental-css-variables", {
148148
describe:
149149
"Generate CSS variables (css-variables.css, css-variables.source.less)" +

packages/cli/lib/cli/commands/serve.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ serve.builder = function(cli) {
6363
default: false,
6464
type: "boolean"
6565
})
66+
.option("cache", {
67+
describe:
68+
"Cache mode to use for building UI5 projects. " +
69+
"The 'Default' behavior is to always use the cache if available. 'Force' uses the cache only " +
70+
"(if it's unavailable or invalid, the build fails). 'Read-only' does not create or update any " +
71+
"cache but makes use of a cache if available. 'Off' does not use any cache and always triggers " +
72+
"a rebuild of the project",
73+
type: "string",
74+
default: "Default",
75+
choices: ["Default", "Force", "ReadOnly", "Off"],
76+
})
6677
.option("framework-version", {
6778
describe: "Overrides the framework version defined by the project. " +
6879
"Takes the same value as the version part of \"ui5 use\"",
@@ -94,17 +105,6 @@ serve.builder = function(cli) {
94105
defaultDescription: "Default",
95106
choices: ["Default", "Force", "Off"],
96107
})
97-
.option("cache", {
98-
describe:
99-
"Cache mode to use for building UI5 projects. " +
100-
"The 'Default' behavior is to always use the cache if available. 'Force' uses the cache only " +
101-
"(if it's unavailable or invalid, the build fails). 'Read-only' does not create or update any " +
102-
"cache but makes use of a cache if available. 'Off' does not use any cache and always triggers " +
103-
"a rebuild of the project",
104-
type: "string",
105-
default: "Default",
106-
choices: ["Default", "Force", "ReadOnly", "Off"],
107-
})
108108
.example("ui5 serve", "Start a web server for the current project")
109109
.example("ui5 serve --h2", "Enable the HTTP/2 protocol for the web server (requires SSL certificate)")
110110
.example("ui5 serve --config /path/to/ui5.yaml", "Use the project configuration from a custom path")

0 commit comments

Comments
 (0)