@gearbox-protocol/cli-utils 5.49.2 → 5.49.4

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.
Files changed (2) hide show
  1. package/dist/Zommand.js +5 -1
  2. 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
- this.addOption(new Option(meta.flags, meta.description));
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/cli-utils",
3
3
  "description": "Utils for creating cli apps",
4
- "version": "5.49.2",
4
+ "version": "5.49.4",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"