diff options
author | PA4WDH | 2023-05-27 11:29:05 +0200 |
---|---|---|
committer | PA4WDH | 2023-05-27 11:29:05 +0200 |
commit | 6559a4ed8b7c48ce5408ad3306eb214a5c38221d (patch) | |
tree | 66f73e4124abc0c0442f6313ef793f18e0a0e0a0 | |
parent | Add feature to use unixtime timestamps in logs and CSV (diff) | |
download | cputemp2maxfreq-6559a4ed8b7c48ce5408ad3306eb214a5c38221d.tar.gz cputemp2maxfreq-6559a4ed8b7c48ce5408ad3306eb214a5c38221d.tar.bz2 cputemp2maxfreq-6559a4ed8b7c48ce5408ad3306eb214a5c38221d.zip |
Improve help text
-rw-r--r-- | argparse.c | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -13,30 +13,34 @@ void printhelp() printf( "Usage: %s <options>\n" "\n" - "Options:\n" - "-c <file> Write CSV log for later analysis to file. Append data if the\n" - " file already exists\n" - "-C <file> Same as -c but overwrite existing file\n" + "Scaling options:\n" "-f <frequency> Fallback frequency in KHz, used when everything fails\n" " Default: %ld\n" "-g <governor> cpufreq governor to use, use \"keep\" to keep current governor\n" " Default: %s\n" - "-h Display this help text\n" "-i <file> Input for temperature readout, usually somewhere in sysfs\n" " Default: %s\n" - "-l <logger> Logger to use, valid values: none, kmsg, stdout, syslog\n" - " Default: %s\n" - "-m Log measurements (CPU temperature and frequency)\n" "-p <time> Poll interval in seconds\n" " Default: %d\n" "-s <step> Step size in Khz when increasing/decreasing CPU speed\n" " Default: %ld\n" "-t <number> Temperature limit\n" " Default: %ld\n" + "\n" + "Logging options:\n" + "-c <file> Write CSV log for later analysis to file. Append data if the\n" + " file already exists\n" + "-C <file> Same as -c but overwrite existing file\n" + "-l <logger> Logger to use, valid values: none, kmsg, stdout, syslog\n" + " Default: %s\n" + "-m Log measurements (CPU temperature and frequency) via logger\n" "-u Use unixtime timestamps in log and CSV outputs\n" - " Default timestamp format is: YYYY-MM-DD HH:MM:SS\n", - config.name,config.fallback_freq,config.governor,config.temp_input,config.logger_name, - config.interval,config.freq_step,config.max_temp/1000 + " Default timestamp format is: YYYY-MM-DD HH:MM:SS\n" + "\n" + "Other options:\n" + "-h Display this help text\n", + config.name,config.fallback_freq,config.governor,config.temp_input,config.interval, + config.freq_step,config.max_temp/1000,config.logger_name ); } |