Advertisement
Guest User

Untitled

a guest
Jul 30th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import click
  4.  
  5. @click.command()
  6. @click.option('--debug', '-d', is_flag=True, envvar='DEBUG', help='Turn on debug output')
  7. @click.argument('branch')
  8. @click.argument('oldsha')
  9. @click.argument('newsha')
  10.  
  11. def main(debug, branch, oldsha, newsha):
  12.  
  13. f = open('branch.log', 'w')
  14. f.write('branch:' + branch + ', '+ oldsha + ', ' + newsha)
  15. f.close()
  16.  
  17. if __name__ == '__main__':
  18.  
  19. main() # pylint: disable=E1120
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement