diff options
author | Tom Willemse | 2013-12-15 17:02:05 +0100 |
---|---|---|
committer | Tom Willemse | 2013-12-15 17:02:50 +0100 |
commit | ea8763fd0d0910afad37eb77a965ffbd0a2cf3b7 (patch) | |
tree | e3bdc0f43a81b72bb98f52f08036de1ba9475d89 /scripts/topple | |
download | topple-ea8763fd0d0910afad37eb77a965ffbd0a2cf3b7.tar.gz topple-ea8763fd0d0910afad37eb77a965ffbd0a2cf3b7.zip |
Initial commit
Diffstat (limited to 'scripts/topple')
-rwxr-xr-x | scripts/topple | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/topple b/scripts/topple new file mode 100755 index 0000000..f09e9ae --- /dev/null +++ b/scripts/topple @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +import sys + +import topple.topple + +if __name__ == '__main__': + cmd = topple.topple.Topple(sys.argv[1:]) + if cmd.error: + print('error: {0}'.format(cmd.error)) + sys.exit(1) + else: + sys.exit(cmd.run()) |