hexagon-oss / openhardwaremonitor

Open Hardware Monitor - a tool for monitoring hardware performance. Includes support for various temperature sensors, disk I/O ratings and power consumption.
Mozilla Public License 2.0
191 stars 24 forks source link

Basic support for command line start-up parameters, including start "minimized". #6

Closed Cereal-Killa closed 3 years ago

Cereal-Killa commented 3 years ago

Start-up parameters, initially supports "--startminimized" #4 . Giving it a little more thought I added support for parameters with values, for future usage.

OpenHardwareMonitor.exe --startminimized

OpenHardwareMonitor.exe --startminimized --sample=value --anothersample=anothervalue

pgrawehr commented 3 years ago

@Cereal-Killa Thanks for providing this. I'll have a look, but I might prefer an implementation that uses a command line library. I will need a bit of time to find the best approach.

pgrawehr commented 3 years ago

@Cereal-Killa I have added a bit more generic code for command line support. Thanks for your support.

Note: Please update your sources before posting another PR (on anything), I have cleaned up the project structure.