This commit is contained in:
13
node_modules/jackspeak/dist/esm/index.js
generated
vendored
13
node_modules/jackspeak/dist/esm/index.js
generated
vendored
@@ -234,15 +234,27 @@ export class Jack {
|
||||
this.#configSet = Object.create(null);
|
||||
this.#shorts = Object.create(null);
|
||||
}
|
||||
/**
|
||||
* Resulting definitions, suitable to be passed to Node's `util.parseArgs`,
|
||||
* but also including `description` and `short` fields, if set.
|
||||
*/
|
||||
get definitions() {
|
||||
return this.#configSet;
|
||||
}
|
||||
/** map of `{ <short>: <long> }` strings for each short name defined */
|
||||
get shorts() {
|
||||
return this.#shorts;
|
||||
}
|
||||
/**
|
||||
* options passed to the {@link Jack} constructor
|
||||
*/
|
||||
get jackOptions() {
|
||||
return this.#options;
|
||||
}
|
||||
/**
|
||||
* the data used to generate {@link Jack#usage} and
|
||||
* {@link Jack#usageMarkdown} content.
|
||||
*/
|
||||
get usageFields() {
|
||||
return this.#fields;
|
||||
}
|
||||
@@ -261,6 +273,7 @@ export class Jack {
|
||||
/* c8 ignore next */
|
||||
const cause = typeof er.cause === 'object' ? er.cause : {};
|
||||
er.cause = { ...cause, path: source };
|
||||
Error.captureStackTrace(er, this.setConfigValues);
|
||||
}
|
||||
throw er;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user