@optique/core 1.0.0-dev.557 → 1.0.0-dev.558

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/facade.cjs CHANGED
@@ -23,7 +23,7 @@ function createHelpParser(commandConfig, optionConfig) {
23
23
  const commandParsers = [];
24
24
  for (let i = 0; i < names.length; i++) commandParsers.push(require_primitives.command(names[i], innerParser, {
25
25
  description: require_message.message`Show help information.`,
26
- hidden: i === 0 ? commandConfig.hidden : commandConfig.hidden === true ? true : true
26
+ hidden: i === 0 ? commandConfig.hidden : true
27
27
  }));
28
28
  helpCommand = commandParsers.length === 1 ? commandParsers[0] : require_constructs.longestMatch(...commandParsers);
29
29
  }
@@ -51,7 +51,7 @@ function createVersionParser(commandConfig, optionConfig) {
51
51
  const commandParsers = [];
52
52
  for (let i = 0; i < names.length; i++) commandParsers.push(require_primitives.command(names[i], innerParser, {
53
53
  description: require_message.message`Show version information.`,
54
- hidden: i === 0 ? commandConfig.hidden : commandConfig.hidden === true ? true : true
54
+ hidden: i === 0 ? commandConfig.hidden : true
55
55
  }));
56
56
  versionCommand = commandParsers.length === 1 ? commandParsers[0] : require_constructs.longestMatch(...commandParsers);
57
57
  }
@@ -93,7 +93,7 @@ function createCompletionParser(programName, availableShells, commandConfig, opt
93
93
  const commandParsers = [];
94
94
  for (let i = 0; i < names.length; i++) commandParsers.push(require_primitives.command(names[i], completionInner, {
95
95
  ...completionCommandConfig,
96
- hidden: i === 0 ? commandConfig.hidden : commandConfig.hidden === true ? true : true
96
+ hidden: i === 0 ? commandConfig.hidden : true
97
97
  }));
98
98
  completionCommand = commandParsers.length === 1 ? commandParsers[0] : require_constructs.longestMatch(...commandParsers);
99
99
  }
package/dist/facade.js CHANGED
@@ -23,7 +23,7 @@ function createHelpParser(commandConfig, optionConfig) {
23
23
  const commandParsers = [];
24
24
  for (let i = 0; i < names.length; i++) commandParsers.push(command(names[i], innerParser, {
25
25
  description: message`Show help information.`,
26
- hidden: i === 0 ? commandConfig.hidden : commandConfig.hidden === true ? true : true
26
+ hidden: i === 0 ? commandConfig.hidden : true
27
27
  }));
28
28
  helpCommand = commandParsers.length === 1 ? commandParsers[0] : longestMatch(...commandParsers);
29
29
  }
@@ -51,7 +51,7 @@ function createVersionParser(commandConfig, optionConfig) {
51
51
  const commandParsers = [];
52
52
  for (let i = 0; i < names.length; i++) commandParsers.push(command(names[i], innerParser, {
53
53
  description: message`Show version information.`,
54
- hidden: i === 0 ? commandConfig.hidden : commandConfig.hidden === true ? true : true
54
+ hidden: i === 0 ? commandConfig.hidden : true
55
55
  }));
56
56
  versionCommand = commandParsers.length === 1 ? commandParsers[0] : longestMatch(...commandParsers);
57
57
  }
@@ -93,7 +93,7 @@ function createCompletionParser(programName, availableShells, commandConfig, opt
93
93
  const commandParsers = [];
94
94
  for (let i = 0; i < names.length; i++) commandParsers.push(command(names[i], completionInner, {
95
95
  ...completionCommandConfig,
96
- hidden: i === 0 ? commandConfig.hidden : commandConfig.hidden === true ? true : true
96
+ hidden: i === 0 ? commandConfig.hidden : true
97
97
  }));
98
98
  completionCommand = commandParsers.length === 1 ? commandParsers[0] : longestMatch(...commandParsers);
99
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.0.0-dev.557+7de4cc60",
3
+ "version": "1.0.0-dev.558+b9c95853",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",