Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 31002
Collapse All | Expand All

(-)acpi/main.c.orig (-31 / +31 lines)
Lines 56-66 Link Here
56
56
57
static int version(void)
57
static int version(void)
58
{
58
{
59
    printf(ACPI_VERSION_STRING """
59
    printf(ACPI_VERSION_STRING """\n\
60
60
\n\
61
Copyright (C) 2001 Grahame Bowland.
61
Copyright (C) 2001 Grahame Bowland.\n\
62
This is free software; see the source for copying conditions.  There is NO
62
This is free software; see the source for copying conditions.  There is NO\n\
63
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
63
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
64
""");
64
""");
65
    return 1;
65
    return 1;
66
}
66
}
Lines 68-99 Link Here
68
68
69
static int usage(char *argv[])
69
static int usage(char *argv[])
70
{
70
{
71
    printf("""\
71
    printf("""\n\
72
Usage: acpi [OPTION]...
72
Usage: acpi [OPTION]...\n\
73
Shows information from the /proc filesystem, such as battery status or 
73
Shows information from the /proc filesystem, such as battery status or \n\
74
thermal information.
74
thermal information.\n\
75
75
\n\
76
  -b, --battery                battery information
76
  -b, --battery                battery information\n\
77
  -B, --without-battery        suppress battery information
77
  -B, --without-battery        suppress battery information\n\
78
  -t, --thermal                thermal information
78
  -t, --thermal                thermal information\n\
79
  -T, --without-thermal        suppress thermal information
79
  -T, --without-thermal        suppress thermal information\n\
80
  -a, --ac-adapter             ac adapter information
80
  -a, --ac-adapter             ac adapter information\n\
81
  -A, --without-ac-adapter     suppress ac-adapter information
81
  -A, --without-ac-adapter     suppress ac-adapter information\n\
82
  -V, --everything             show every device, overrides above options
82
  -V, --everything             show every device, overrides above options\n\
83
  -s, --show-empty             show non-operational devices
83
  -s, --show-empty             show non-operational devices\n\
84
  -S, --hide-empty             hide non-operational devices
84
  -S, --hide-empty             hide non-operational devices\n\
85
  -c, --celcius                use celcius as the temperature unit
85
  -c, --celcius                use celcius as the temperature unit\n\
86
  -f, --fahrenheit             use fahrenheit as the temperature unit
86
  -f, --fahrenheit             use fahrenheit as the temperature unit\n\
87
  -k, --kelvin                 use kelvin as the temperature unit
87
  -k, --kelvin                 use kelvin as the temperature unit\n\
88
  -d, --directory <dir>        path to ACPI info (/proc/acpi)
88
  -d, --directory <dir>        path to ACPI info (/proc/acpi)\n\
89
  -h, --help                   display this help and exit
89
  -h, --help                   display this help and exit\n\
90
  -v, --version                output version information and exit
90
  -v, --version                output version information and exit\n\
91
91
\n\
92
By default, acpi displays information on installed system batteries. 
92
By default, acpi displays information on installed system batteries. \n\
93
Non-operational devices, for example empty battery slots are hidden.
93
Non-operational devices, for example empty battery slots are hidden.\n\
94
The default unit of temperature is degrees celcius.
94
The default unit of temperature is degrees celcius.\n\
95
95
\n\
96
Report bugs to Grahame Bowland <grahame@azale.net>.
96
Report bugs to Grahame Bowland <grahame@azale.net>.\n\
97
""");
97
""");
98
    return 1;
98
    return 1;
99
}
99
}

Return to bug 31002