~therve/pyjuju/cloud-config

« back to all changes in this revision

Viewing changes to juju/control/__init__.py

  • Committer: Clint Byrum
  • Date: 2012-10-03 22:18:30 UTC
  • mfrom: (583.2.1 add-version-arg)
  • Revision ID: clint@ubuntu.com-20121003221830-2lzh9h0w9yr4olgm
[r=jimbaker][f=938899] Add --version option

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
from .command import Commander
7
7
from .utils import ParseError
8
8
from juju.environment.config import EnvironmentsConfig
 
9
from juju import __version__
9
10
 
10
11
import add_relation
11
12
import add_unit
106
107
        help="Enable verbose logging")
107
108
 
108
109
    parser.add_argument(
 
110
        "--version", action="version", version='juju %s' % (__version__))
 
111
 
 
112
    parser.add_argument(
109
113
        "--log-file", "-l", default=sys.stderr, type=argparse.FileType('a'),
110
114
        help="Log output to file")
111
115