]> arthur.barton.de Git - bup.git/blob - cmd-init.py
Add 'bup init' command.
[bup.git] / cmd-init.py
1 #!/usr/bin/env python
2 import git, options
3 from helpers import *
4
5 optspec = """
6 [BUP_DIR=...] bup init
7 """
8 o = options.Options('bup init', optspec)
9 (opt, flags, extra) = o.parse(sys.argv[1:])
10
11 if extra:
12     log("bup init: no arguments expected\n")
13     o.usage()
14
15 exit(git.init_repo())
16