-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Support documenting environment variables #682
Comments
You can specify necessary help information using |
Thx for your time, we really appreciate it. |
Well, that's unfortunate. I agree that Using environment variables in a program is not a niche use case, and this would make it easy to document them. After all, they act as options under steroids (can be programmatically set) and it would be nice to document them similarly. |
BTW, I'm not able to reopen this issue, but wouldn't anyway as you explained your position :) |
When running
atom -h
from the command line, I got the following:It would be great if
commander
had a way to easily document environment variables like this.Syntax could be:
program.env('MY_ENV_VAR', 'This is the documentation for this environment variable')
. There would be no enforcement, just for documentation purposes (correctly aligning them with each other, adding a section title "Environment variables" if there is any, etc.), but it would be very helpful.In fact, in thelounge/lounge#1416, we have deprecated one of our options,
--home
, in favor of an environment variable,LOUNGE_HOME
.Documenting this in thelounge/lounge#1418 felt weird and is not ideal as we'll have to correctly document it in a future version, when we remove
--home
.The text was updated successfully, but these errors were encountered: