A modest string writer

sardine 651B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/python
  2. """Generic mon echoer
  3. usage: sardine [options] COMMAND [ARGS...]
  4. Options:
  5. -c, --chars CHARS specify limit in characters
  6. --format FMT 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 sardine
  15. if __name__ == '__main__':
  16. args = docopt.docopt(__doc__,
  17. version="sardine 0.1",
  18. options_first=True)
  19. app = sardine.App(args)
  20. app.run()