4 ms·
This is precisely how I setup my utilities. I have found following practices useful: 1. Print the path of the system and user level configurations that the uti
by noisy_boy 6y ago
This is precisely how I setup my utilities. I have found following practices useful:
1. Print the path of the system and user level configurations that the utility honours in the help text (-h/-?)
2. For an option that can be set interactively or via environment variable, specify the environment variable name in the help text itself to provide maximum choice to the user.
3. Provide a -viewconfig option that prints out the final resolved configuration state so that the user can see the actual configuration that is in effect. Combined with a -dryrun option, this can provide a lot of confidence to the user to try out things without breaking anything.