[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

@ -2,15 +2,12 @@ import pyroute2
import netifaces
import bumblebee.module
def usage():
return "nic"
def notes():
return "Interfaces starting with 'lo' or 'virbr' are ignored. Critical if the status of an interface is 'down', Warning if it is anything else but 'up'. Interface status is derived from whether an IP address is available or not."
def description():
return "Displays the names, IP addresses and status of each available interface."
def parameters():
return [ "none" ]
class Module(bumblebee.module.Module):
def __init__(self, output, config, alias):
super(Module, self).__init__(output, config, alias)