Eclectic Media Git klaus / 1eea6be
bin/klaus: Warn if no repos supplied Jonas Haag 7 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
00 #!/usr/bin/env python2
11 # coding: utf-8
22
3 import sys
34 import os
45 import argparse
6
57 from dulwich.errors import NotGitRepository
68 from dulwich.repo import Repo
9
710 import klaus
811
912
4144 def main():
4245 args = make_parser().parse_args()
4346
47 if not args.repos:
48 print >> sys.stderr, "WARNING: No repositories supplied -- syntax is 'klaus dir1 dir2...'."
49
4450 if not args.sitename:
4551 args.sitename = '%s:%d' % (args.host, args.port)
4652