Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import click
- @click.command()
- @click.option('--debug', '-d', is_flag=True, envvar='DEBUG', help='Turn on debug output')
- @click.argument('branch')
- @click.argument('oldsha')
- @click.argument('newsha')
- def main(debug, branch, oldsha, newsha):
- f = open('branch.log', 'w')
- f.write('branch:' + branch + ', '+ oldsha + ', ' + newsha)
- f.close()
- if __name__ == '__main__':
- main() # pylint: disable=E1120
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement