aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--argparse.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/argparse.c b/argparse.c
index 5c834cc..37d9176 100644
--- a/argparse.c
+++ b/argparse.c
@@ -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
);
}