@optique/core 0.10.0-dev.329 → 0.10.0-dev.330

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
@@ -529,13 +529,14 @@ function runParser(parserOrProgram, programNameOrArgs, argsOrOptions, optionsPar
529
529
  const displayHelp = (doc) => {
530
530
  if (doc != null) {
531
531
  const isMetaCommandHelp = (completionName === "singular" || completionName === "both" ? requestedCommand === "completion" : false) || (completionName === "plural" || completionName === "both" ? requestedCommand === "completions" : false) || requestedCommand === "help" || requestedCommand === "version";
532
+ const isTopLevel = classified.commands.length === 0;
532
533
  const augmentedDoc = {
533
534
  ...doc,
534
535
  brief: !isMetaCommandHelp ? brief ?? doc.brief : doc.brief,
535
536
  description: !isMetaCommandHelp ? description ?? doc.description : doc.description,
536
- examples: !isMetaCommandHelp ? examples ?? doc.examples : doc.examples,
537
- author: !isMetaCommandHelp ? author ?? doc.author : doc.author,
538
- bugs: !isMetaCommandHelp ? bugs ?? doc.bugs : doc.bugs,
537
+ examples: isTopLevel && !isMetaCommandHelp ? examples ?? doc.examples : void 0,
538
+ author: isTopLevel && !isMetaCommandHelp ? author ?? doc.author : void 0,
539
+ bugs: isTopLevel && !isMetaCommandHelp ? bugs ?? doc.bugs : void 0,
539
540
  footer: !isMetaCommandHelp ? footer ?? doc.footer : doc.footer
540
541
  };
541
542
  stdout(require_doc.formatDocPage(programName, augmentedDoc, {
package/dist/facade.js CHANGED
@@ -529,13 +529,14 @@ function runParser(parserOrProgram, programNameOrArgs, argsOrOptions, optionsPar
529
529
  const displayHelp = (doc) => {
530
530
  if (doc != null) {
531
531
  const isMetaCommandHelp = (completionName === "singular" || completionName === "both" ? requestedCommand === "completion" : false) || (completionName === "plural" || completionName === "both" ? requestedCommand === "completions" : false) || requestedCommand === "help" || requestedCommand === "version";
532
+ const isTopLevel = classified.commands.length === 0;
532
533
  const augmentedDoc = {
533
534
  ...doc,
534
535
  brief: !isMetaCommandHelp ? brief ?? doc.brief : doc.brief,
535
536
  description: !isMetaCommandHelp ? description ?? doc.description : doc.description,
536
- examples: !isMetaCommandHelp ? examples ?? doc.examples : doc.examples,
537
- author: !isMetaCommandHelp ? author ?? doc.author : doc.author,
538
- bugs: !isMetaCommandHelp ? bugs ?? doc.bugs : doc.bugs,
537
+ examples: isTopLevel && !isMetaCommandHelp ? examples ?? doc.examples : void 0,
538
+ author: isTopLevel && !isMetaCommandHelp ? author ?? doc.author : void 0,
539
+ bugs: isTopLevel && !isMetaCommandHelp ? bugs ?? doc.bugs : void 0,
539
540
  footer: !isMetaCommandHelp ? footer ?? doc.footer : doc.footer
540
541
  };
541
542
  stdout(formatDocPage(programName, augmentedDoc, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "0.10.0-dev.329+96b4ad62",
3
+ "version": "0.10.0-dev.330+04823df7",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",