~unity-2d-team/unity-2d/Shell-MultiMonitor

« back to all changes in this revision

Viewing changes to grackle-create-instance

  • Committer: Aaron Bentley
  • Date: 2012-01-10 14:03:53 UTC
  • Revision ID: aaron@canonical.com-20120110140353-njvna2100kp082s7
Use constants.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
 
3
 
from optparse import OptionParser
4
 
 
5
 
from grackle.server.model import create_schema
6
 
 
7
 
 
8
 
parser = OptionParser(usage="usage: %prog [options] <hostname> <keyspace>")
9
 
parser.add_option(
10
 
    "--clobber", action="store_true", default=False, dest="clobber",
11
 
    help="clear the keyspace before initialising it")
12
 
options, args = parser.parse_args()
13
 
 
14
 
if len(args) != 2:
15
 
    parser.error("hostname and keyspace required")
16
 
 
17
 
create_schema(args[0], args[1], clobber=options.clobber)