Added year 2022 to copyright.
Changed usage a little.
This commit is contained in:
parent
7eecfbee01
commit
cfa5c344cd
19
src/main.c
19
src/main.c
@ -71,20 +71,21 @@ inline price_t price_to_wattspersecond(const price_t price) {
|
|||||||
|
|
||||||
inline void print_version() {
|
inline void print_version() {
|
||||||
puts("kwh-cost Ver. " VERSION "\n"
|
puts("kwh-cost Ver. " VERSION "\n"
|
||||||
"Copyright (C) 2021 Alexander \"Arav\" Andreev <me@arav.top>. All rights reserved.\n"
|
"Copyright (C) 2021,2022 Alexander \"Arav\" Andreev <me@arav.top>. All rights reserved.\n"
|
||||||
"You can see a license for this program in /usr/share/licenses/kwh-cost/LICENSE.");
|
"You can see a license for this program in /usr/share/licenses/kwh-cost/LICENSE.");
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void print_usage() {
|
inline void print_usage() {
|
||||||
puts("Usage: kwh-cost [OPTIONS] price wattage interval [interval ...]\n"
|
puts("Usage: kwh-cost [OPTIONS] price wattage interval [interval ...]\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" --help, -h Display this usage information.\n"
|
" --help, -h display this usage information.\n"
|
||||||
" --version, -v Display program version.\n"
|
" --version, -v display program version.\n"
|
||||||
"Arguments:\n"
|
"Arguments:\n"
|
||||||
" price Price per kWh.\n"
|
" price price per kWh.\n"
|
||||||
" wattage Specify power usage in Watts.\n"
|
" wattage power usage in Watts.\n"
|
||||||
" interval Time interval in seconds total cost to be calculated for.\n"
|
" interval time interval in seconds during which\n"
|
||||||
" You may specify other time units such as:\n"
|
" this much power to be constantly used.\n"
|
||||||
" m'inute, h'our, d'ay. Example: 5d 3h.\n"
|
" You may specify other time units such as:\n"
|
||||||
" All given intervals will be summed up.");
|
" m'inute, h'our, d'ay. Example: 5d 3h.\n"
|
||||||
|
" All given intervals will be summed up.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user