Allow Changing the Config File Location #3
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A command-line parameter should be added to allow the user to define where they want to store their configuration settings. This can be useful if someone chooses to do a user-install and wants to change where things are stored.
The default config file should also change to
/etc/dragon/config.toml
since this is intended to be run as a system service.For v0.3.2 I implemented a CLI parsing class under
config/Cmd
to parse CLI parameters, and added a configFile parameter (set with-c
or--configPath
) to change the config file to load.I used the Apache Commons CLI library to do this: https://commons.apache.org/proper/commons-cli/