[Pkg-acpi-devel] Bug#617548: acpi: help output not correctly aligned

Luca Capello luca at pca.it
Wed Mar 9 18:10:48 UTC 2011


Package: acpi
Version: 1.5-2
Severity: minor
Tags: upstream

Hi there!

As the subject states, here the output:
=====
luca at gismo:~$ acpi -h
Usage: acpi [OPTION]...
Shows information from the /proc filesystem, such as battery status or
thermal information.

  -b, --battery         battery information
  -i, --details         show additional details if available:
                                - battery capacity information
                                - temperature trip points
  -a, --ac-adapter              ac adapter information
  -t, --thermal         thermal information
  -c, --cooling         cooling information
  -V, --everything              show every device, overrides above options
  -s, --show-empty              show non-operational devices
  -f, --fahrenheit              use fahrenheit as the temperature unit
  -k, --kelvin                  use kelvin as the temperature unit
  -d, --directory <dir> path to ACPI info (/sys/class resp. /proc/acpi)
  -p, --proc                    use old proc interface instead of new sys interface
  -h, --help                    display this help and exit
  -v, --version         output version information and exit

By default, acpi displays information on installed system batteries.
Non-operational devices, for example empty battery slots are hidden.
The default unit of temperature is degrees celsius.

Report bugs to Michael Meskes <meskes at debian.org>.
luca at gismo:~$ 
=====

This is because tabs are used, so I replaced them with spaces and also
gave a bit more separation because of the -d option:
=====
luca at gismo:~/src/acpiclient(git)[master]$ ./acpi -h
Usage: acpi [OPTION]...
Shows information from the /proc filesystem, such as battery status or
thermal information.

  -b, --battery            battery information
  -i, --details            show additional details if available:
                             - battery capacity information
                             - temperature trip points
  -a, --ac-adapter         ac adapter information
  -t, --thermal            thermal information
  -c, --cooling            cooling information
  -V, --everything         show every device, overrides above options
  -s, --show-empty         show non-operational devices
  -f, --fahrenheit         use fahrenheit as the temperature unit
  -k, --kelvin             use kelvin as the temperature unit
  -d, --directory <dir>    path to ACPI info (/sys/class resp. /proc/acpi)
  -p, --proc               use old proc interface instead of new sys interface
  -h, --help               display this help and exit
  -v, --version            output version information and exit

By default, acpi displays information on installed system batteries.
Non-operational devices, for example empty battery slots are hidden.
The default unit of temperature is degrees celsius.

Report bugs to Michael Meskes <meskes at debian.org>.
luca at gismo:~/src/acpiclient(git)[master]$ 
=====

I will send the patch as soon as this bug gets a number ;-)

Thx, bye,
Gismo / Luca

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages acpi depends on:
ii  libc6                         2.11.2-13  Embedded GNU C Library: Shared lib

acpi recommends no packages.

acpi suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20110309/a5eb2ba4/attachment-0001.pgp>


More information about the Pkg-acpi-devel mailing list