123456789101112131415161718192021222324252627 |
- #!/usr/bin/python
-
- """Generic mon echoer
-
- usage: gmon [--format=<format>] [-p|--plain] [-x|--xgp] <command> [<args>...]
-
- Options:
- -c, --chars specify limit in characters
- --format <format> specify format: plain is a plain text, xgp
- is specific for xfce4-genmon-plugin
- -p, --plain same as --format=plain
- -x, --xgp same as --format=xgp
- -h, --help show this screen
- --version show version
- """
-
- import docopt
- import gmon
-
-
- if __name__ == '__main__':
-
- args = docopt.docopt(__doc__,
- version="gmon 0.1",
- options_first=True)
- app = gmon.App(args)
- app.run()
|