Skip to content

Instantly share code, notes, and snippets.

@mizzy
Created July 12, 2011 15:37
Show Gist options
  • Save mizzy/1078224 to your computer and use it in GitHub Desktop.
Save mizzy/1078224 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import dotcloud.cli.cli as cli
import sys
from optparse import OptionParser
parser = OptionParser()
parser.add_option(
'--cmd',
dest='cmd',
)
parser.add_option(
'--internal',
action='store_true',
default=False,
)
( options, args ) = parser.parse_args();
cli.hook___export(sys.argv)
cli.run_command(options.cmd.split(), options.internal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment