bin/klaus: Warn if no repos supplied
Jonas Haag
12 years ago
0 | 0 | #!/usr/bin/env python2 |
1 | 1 | # coding: utf-8 |
2 | 2 | |
3 | import sys | |
3 | 4 | import os |
4 | 5 | import argparse |
6 | ||
5 | 7 | from dulwich.errors import NotGitRepository |
6 | 8 | from dulwich.repo import Repo |
9 | ||
7 | 10 | import klaus |
8 | 11 | |
9 | 12 | |
41 | 44 | def main(): |
42 | 45 | args = make_parser().parse_args() |
43 | 46 | |
47 | if not args.repos: | |
48 | print >> sys.stderr, "WARNING: No repositories supplied -- syntax is 'klaus dir1 dir2...'." | |
49 | ||
44 | 50 | if not args.sitename: |
45 | 51 | args.sitename = '%s:%d' % (args.host, args.port) |
46 | 52 |