Skip to content

Commit

Permalink
[INTERNAL] log-level & cache-mode: Do not list choices in description
Browse files Browse the repository at this point in the history
Yargs already renders them in a sufficient way. Therefore remove them
from the description.
  • Loading branch information
RandomByte committed Jul 3, 2023
1 parent b44f628 commit 852f5b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/cli/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function(cli) {
})
.option("loglevel", {
alias: "log-level",
describe: "Set the logging level (silent|error|warn|info|perf|verbose|silly).",
describe: "Set the logging level",
default: "info",
type: "string",
choices: ["silent", "error", "warn", "info", "perf", "verbose", "silly"]
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ build.builder = function(cli) {
})
.option("cache-mode", {
describe:
"Cache mode to use when consuming SNAPSHOT versions of a framework: 'Default', 'Force', or 'Off'. " +
"Cache mode to use when consuming SNAPSHOT versions of framework dependencies. " +
"The 'Default' behavior is to invalidate the cache after 9 hours. 'Force' uses the cache only and " +
"does not create any requests. 'Off' invalidates any existing cache and updates from the repository",
type: "string",
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ serve.builder = function(cli) {
})
.option("cache-mode", {
describe:
"Cache mode to use when consuming SNAPSHOT versions of a framework: 'Default', 'Force', or 'Off'. " +
"Cache mode to use when consuming SNAPSHOT versions of framework dependencies. " +
"The 'Default' behavior is to invalidate the cache after 9 hours. 'Force' uses the cache only and " +
"does not create any requests. 'Off' invalidates any existing cache and updates from the repository",
type: "string",
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/commands/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tree.builder = function(cli) {
})
.option("cache-mode", {
describe:
"Cache mode to use when consuming SNAPSHOT versions of a framework: 'Default', 'Force', or 'Off'. " +
"Cache mode to use when consuming SNAPSHOT versions of framework dependencies. " +
"The 'Default' behavior is to invalidate the cache after 9 hours. 'Force' uses the cache only and " +
"does not create any requests. 'Off' invalidates any existing cache and updates from the repository",
type: "string",
Expand Down

0 comments on commit 852f5b4

Please sign in to comment.