@gearbox-protocol/cli-utils 5.49.1 → 5.49.3
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/Zommand.js +5 -1
- package/package.json +1 -1
package/dist/Zommand.js
CHANGED
|
@@ -44,7 +44,11 @@ export class Zommand extends Command {
|
|
|
44
44
|
// this avoids duplicate options in case of discriminated unions
|
|
45
45
|
const existing = this.options.find(o => o.flags === meta.flags);
|
|
46
46
|
if (!existing) {
|
|
47
|
-
|
|
47
|
+
let description = meta.description;
|
|
48
|
+
if (meta.env) {
|
|
49
|
+
description = `${description} (env variable ${meta.env})`;
|
|
50
|
+
}
|
|
51
|
+
this.addOption(new Option(meta.flags, description));
|
|
48
52
|
if (meta.env) {
|
|
49
53
|
this.#envToObjectKeys[meta.env] = key;
|
|
50
54
|
}
|