Add an option to the CLI --config that looks for a configuration file with prefilled keys and values for other options available on the command line.
For example, the command torrentfile create --config /path/to/content would create a new torrentfile from the content using the information listed in a configuration file in the users current working directory called torrentfile.ini.
The cli can then automatically parse the contents of the config file, use preset defaults for any options that are not listed in the config file or on the command line, and consider options specified on the command line to have a higher priority than those indicated in the config file.
Suggested enhancement to the CLI.
--config
that looks for a configuration file with prefilled keys and values for other options available on the command line.For example, the command
torrentfile create --config /path/to/content
would create a new torrentfile from the content using the information listed in a configuration file in the users current working directory calledtorrentfile.ini
.An example of the ini file:
The cli can then automatically parse the contents of the config file, use preset defaults for any options that are not listed in the config file or on the command line, and consider options specified on the command line to have a higher priority than those indicated in the config file.