A modest string writer

123456789101112131415161718192021222324252627
  1. #!/usr/bin/python
  2. """Generic mon echoer
  3. usage: gmon [--format=<format>] [-p|--plain] [-x|--xgp] <command> [<args>...]
  4. Options:
  5. -c, --chars specify limit in characters
  6. --format <format> specify format: plain is a plain text, xgp
  7. is specific for xfce4-genmon-plugin
  8. -p, --plain same as --format=plain
  9. -x, --xgp same as --format=xgp
  10. -h, --help show this screen
  11. --version show version
  12. """
  13. import docopt
  14. import gmon
  15. if __name__ == '__main__':
  16. args = docopt.docopt(__doc__,
  17. version="gmon 0.1",
  18. options_first=True)
  19. app = gmon.App(args)
  20. app.run()