Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. """
  2.  
  3. click_wrapper = click.command()
  4.  
  5. def wrapper(fn):
  6. logging.basicConfig(level=logging.DEBUG, format='%(asctime)s \t %(name)s \t %(levelname)s \t %(message)s')
  7. return click.option('--host', type=str, default=20, help='Host name of ActiveMQ')(
  8. click.option('--port', type=int, default=20, help='Port ActiveMQ')(
  9. click.option('--queue', type=str, default=queue, help='Queue to listen to')(
  10. click.option('--xipurl', type=str, default=20, help='URL to XIP endpoint')(
  11. click.option('--wait', type=int, default=20, help='Time to wait before processing next')(
  12. click.option('--config', default=None, help='Specify the configuration file defining options')(click_wrapper(fn)))))))
  13.  
  14. return wrapper
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement