@optique/core 0.7.17-dev.397 → 0.7.17-dev.399

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.
@@ -1091,7 +1091,7 @@ function group(label, parser) {
1091
1091
  complete: (state) => parser.complete(state),
1092
1092
  suggest: (context, prefix) => parser.suggest(context, prefix),
1093
1093
  getDocFragments: (state, defaultValue) => {
1094
- const { description, fragments } = parser.getDocFragments(state, defaultValue);
1094
+ const { brief, description, footer, fragments } = parser.getDocFragments(state, defaultValue);
1095
1095
  const allEntries = [];
1096
1096
  const titledSections = [];
1097
1097
  for (const fragment of fragments) if (fragment.type === "entry") allEntries.push(fragment);
@@ -1114,7 +1114,9 @@ function group(label, parser) {
1114
1114
  entries: allEntries
1115
1115
  } : { entries: allEntries };
1116
1116
  return {
1117
+ brief,
1117
1118
  description,
1119
+ footer,
1118
1120
  fragments: [...titledSections.map((s) => ({
1119
1121
  ...s,
1120
1122
  type: "section"
@@ -1091,7 +1091,7 @@ function group(label, parser) {
1091
1091
  complete: (state) => parser.complete(state),
1092
1092
  suggest: (context, prefix) => parser.suggest(context, prefix),
1093
1093
  getDocFragments: (state, defaultValue) => {
1094
- const { description, fragments } = parser.getDocFragments(state, defaultValue);
1094
+ const { brief, description, footer, fragments } = parser.getDocFragments(state, defaultValue);
1095
1095
  const allEntries = [];
1096
1096
  const titledSections = [];
1097
1097
  for (const fragment of fragments) if (fragment.type === "entry") allEntries.push(fragment);
@@ -1114,7 +1114,9 @@ function group(label, parser) {
1114
1114
  entries: allEntries
1115
1115
  } : { entries: allEntries };
1116
1116
  return {
1117
+ brief,
1117
1118
  description,
1119
+ footer,
1118
1120
  fragments: [...titledSections.map((s) => ({
1119
1121
  ...s,
1120
1122
  type: "section"
package/dist/facade.cjs CHANGED
@@ -582,8 +582,8 @@ function run(parser, programName, args, options = {}) {
582
582
  const shouldOverride = !isMetaCommandHelp && !isSubcommandHelp;
583
583
  const augmentedDoc = {
584
584
  ...doc,
585
- brief: shouldOverride ? brief ?? doc.brief : doc.brief ?? brief,
586
- description: shouldOverride ? description ?? doc.description : doc.description ?? description,
585
+ brief: shouldOverride ? brief ?? doc.brief : doc.brief,
586
+ description: shouldOverride ? description ?? doc.description : doc.description,
587
587
  footer: shouldOverride ? footer ?? doc.footer : doc.footer ?? footer
588
588
  };
589
589
  stdout(require_doc.formatDocPage(programName, augmentedDoc, {
package/dist/facade.js CHANGED
@@ -582,8 +582,8 @@ function run(parser, programName, args, options = {}) {
582
582
  const shouldOverride = !isMetaCommandHelp && !isSubcommandHelp;
583
583
  const augmentedDoc = {
584
584
  ...doc,
585
- brief: shouldOverride ? brief ?? doc.brief : doc.brief ?? brief,
586
- description: shouldOverride ? description ?? doc.description : doc.description ?? description,
585
+ brief: shouldOverride ? brief ?? doc.brief : doc.brief,
586
+ description: shouldOverride ? description ?? doc.description : doc.description,
587
587
  footer: shouldOverride ? footer ?? doc.footer : doc.footer ?? footer
588
588
  };
589
589
  stdout(formatDocPage(programName, augmentedDoc, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "0.7.17-dev.397+7a3e1705",
3
+ "version": "0.7.17-dev.399+e0a42e53",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",