@optique/core 0.5.0 → 0.5.2

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/doc.cjs CHANGED
@@ -65,6 +65,7 @@ function formatDocPage(programName, page, options = {}) {
65
65
  }
66
66
  const sections = page.sections.toSorted((a, b) => a.title == null && b.title == null ? 0 : a.title == null ? -1 : 1);
67
67
  for (const section of sections) {
68
+ if (section.entries.length < 1) continue;
68
69
  output += "\n";
69
70
  if (section.title != null) output += `${section.title}:\n`;
70
71
  for (const entry of section.entries) {
package/dist/doc.js CHANGED
@@ -65,6 +65,7 @@ function formatDocPage(programName, page, options = {}) {
65
65
  }
66
66
  const sections = page.sections.toSorted((a, b) => a.title == null && b.title == null ? 0 : a.title == null ? -1 : 1);
67
67
  for (const section of sections) {
68
+ if (section.entries.length < 1) continue;
68
69
  output += "\n";
69
70
  if (section.title != null) output += `${section.title}:\n`;
70
71
  for (const entry of section.entries) {
package/dist/facade.d.cts CHANGED
@@ -107,13 +107,15 @@ interface RunOptions<THelp, TError> {
107
107
  */
108
108
  readonly onError?: (() => TError) | ((exitCode: number) => TError);
109
109
  /**
110
- * Function used to output error messages.
110
+ * Function used to output error messages. Assumes it prints the ending
111
+ * newline.
111
112
  *
112
113
  * @default `console.error`
113
114
  */
114
115
  readonly stderr?: (text: string) => void;
115
116
  /**
116
- * Function used to output help and usage messages.
117
+ * Function used to output help and usage messages. Assumes it prints
118
+ * the ending newline.
117
119
  *
118
120
  * @default `console.log`
119
121
  */
package/dist/facade.d.ts CHANGED
@@ -107,13 +107,15 @@ interface RunOptions<THelp, TError> {
107
107
  */
108
108
  readonly onError?: (() => TError) | ((exitCode: number) => TError);
109
109
  /**
110
- * Function used to output error messages.
110
+ * Function used to output error messages. Assumes it prints the ending
111
+ * newline.
111
112
  *
112
113
  * @default `console.error`
113
114
  */
114
115
  readonly stderr?: (text: string) => void;
115
116
  /**
116
- * Function used to output help and usage messages.
117
+ * Function used to output help and usage messages. Assumes it prints
118
+ * the ending newline.
117
119
  *
118
120
  * @default `console.log`
119
121
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",