Add -r registersfilename commandline argument

Allow specifying the registerfile from commandline.

ex:
$ python3 sungather.py -c /path/to/config.yaml -r /other/path/registers-sungrow.yaml
This commit is contained in:
Andreas Eriksson
2022-11-19 19:30:07 +01:00
parent 7beda30862
commit c34941dccb
2 changed files with 15 additions and 10 deletions
+1
View File
@@ -122,6 +122,7 @@ usage: python3 sungather.py [options]
Commandline arguments override any config file settings
**-c config.yaml** - Specify config file.
**-r registersfile.yaml** - Specify registersfile.
**-v 30** - Logging Level, 10 = Debug, 20 = Info, 30 = Warning (default), 40 = Error
**--runonce** - Run once then exit
**-h** - print this help message and exit (also --help)