Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of environment variables defined by command options in --help #150

Open
Drarig29 opened this issue Sep 29, 2023 · 1 comment
Open

Comments

@Drarig29
Copy link
Contributor

Drarig29 commented Sep 29, 2023

At the end of node --help, there is a list of environment variables.

Extract:

  --watch-path=...                                                path to watch
  --zero-fill-buffers                                             automatically zero-fill all newly allocated Buffer and SlowBuffer instances

Environment variables:
FORCE_COLOR                   when set to 'true', 1, 2, 3, or an empty string causes NO_COLOR and NODE_DISABLE_COLORS to
                              be ignored.
NO_COLOR                      Alias for NODE_DISABLE_COLORS
NODE_DEBUG                    ','-separated list of core modules that should print debug information
NODE_DEBUG_NATIVE             ','-separated list of C++ core debug categories that should print debug output
...
NODE_V8_COVERAGE              directory to output v8 coverage JSON to
TZ                            specify the timezone configuration
UV_THREADPOOL_SIZE            sets the number of threads used in libuv's threadpool

Documentation can be found at https://nodejs.org/

It would be great to have something like this with clipanion. It could be shown automatically when we define an Option.String() with env.

I think having the list of environment variables at the end would avoid cluttering the existing help output.

@Drarig29
Copy link
Contributor Author

Drarig29 commented Sep 29, 2023

I would be happy to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant