[help] Update and beautify the commandline help output
This commit is contained in:
parent
3af8ee771d
commit
caceb6f20f
11 changed files with 59 additions and 88 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue