You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Env variables work nicely for programs with a small number of arguments.
With more arguments it would be nice to be able to save the given arguments as defaults. (i.e. as json file under $HOME/.config/programname.json)
example
# save defaults without actually calling the program
$ program --saveAsDefaults --host google.com --port 42 --username bob --color blue
$ cat ~/.config/program.json
{
"host":"google.com",
"port":42,
"username":"bob",
"color":"blue"
}
The text was updated successfully, but these errors were encountered:
Configuration files is a big topic, with lots of variation in where they are stored, and the configuration file format, let alone writing. Configuration files were discussed in #1584, and there was so little common ground in that discussion that we ended up just improving support for authors doing it themselves. (e.g as being used in #1713)
You are describing something (deliberately) more self-contained and limited. I'm not sure what percentage of users that will suit. Happy to leave this open for a while and see what feedback and likes it gets.
Env variables work nicely for programs with a small number of arguments.
With more arguments it would be nice to be able to save the given arguments as defaults. (i.e. as json file under $HOME/.config/programname.json)
example
The text was updated successfully, but these errors were encountered: