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

« back to all changes in this revision

Viewing changes to grackle-create-instance

  • Committer: William Grant
  • Date: 2012-01-22 10:33:21 UTC
  • Revision ID: william.grant@canonical.com-20120122103321-79m4gov8cntyxpy2
grackle-create-instance can now create the keyspace too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
parser.add_option(
10
10
    "--clobber", action="store_true", default=False, dest="clobber",
11
11
    help="clear the keyspace before initialising it")
 
12
parser.add_option(
 
13
    "--create-keyspace", action="store_true", default=False,
 
14
    dest="create_keyspace",
 
15
    help="create the keyspace (with SimpleStrategy, RF=1)")
12
16
options, args = parser.parse_args()
13
17
 
14
18
if len(args) != 2:
15
19
    parser.error("hostname and keyspace required")
16
20
 
17
 
create_schema(args[0], args[1], clobber=options.clobber)
 
21
create_schema(
 
22
    args[0], args[1], clobber=options.clobber,
 
23
    create_keyspace=options.create_keyspace)