[help] Update and beautify the commandline help output

This commit is contained in:
Tobias Witek 2016-11-05 16:18:53 +01:00
parent 3af8ee771d
commit caceb6f20f
11 changed files with 59 additions and 88 deletions

View file

@ -1,15 +1,12 @@
import datetime
import bumblebee.module
def usage():
return "battery or battery::<battery ID, defaults to BAT0>"
def notes():
return "Reads /sys/class/power_supply/<ID>/[capacity|status]. Warning is at 20% remaining charge, Critical at 10%."
def description():
return "Displays battery status, percentage and whether it's charging or discharging."
def parameters():
return [ "battery.device: The device to read from (defaults to BAT0)" ]
class Module(bumblebee.module.Module):
def __init__(self, output, config, alias):
super(Module, self).__init__(output, config, alias)