Added '.' and remove extra parentheses(')') from README.rst
Set help parameter in troveclient/shell.py inside version agruments, default first letter was lowercase and period missing. Closes-Bug:1525550 Change-Id: Ia11f4fd5462487064a743697ebd95a46dd72b8e7
This commit is contained in:
@@ -165,7 +165,7 @@ You'll find complete documentation on the shell by running
|
|||||||
its subcommands.
|
its subcommands.
|
||||||
|
|
||||||
Optional arguments:
|
Optional arguments:
|
||||||
--version Show program's version number and exit
|
--version Show program's version number and exit.
|
||||||
--debug Print debugging output.
|
--debug Print debugging output.
|
||||||
--os-username <auth-user-name> Defaults to env[OS_USERNAME].
|
--os-username <auth-user-name> Defaults to env[OS_USERNAME].
|
||||||
--os-password <auth-password> Defaults to env[OS_PASSWORD].
|
--os-password <auth-password> Defaults to env[OS_PASSWORD].
|
||||||
@@ -210,12 +210,12 @@ There's also a complete Python API, but it has not yet been documented.
|
|||||||
|
|
||||||
Quick-start using keystone::
|
Quick-start using keystone::
|
||||||
|
|
||||||
# use v2.0 auth with http://example.com:5000/v2.0/")
|
# use v2.0 auth with http://example.com:5000/v2.0/
|
||||||
>>> from troveclient.v1 import client
|
>>> from troveclient.v1 import client
|
||||||
>>> nt = client.Client(USERNAME,
|
>>> nt = client.Client(USERNAME,
|
||||||
PASSWORD,
|
PASSWORD,
|
||||||
project_id=TENANT_NAME,
|
project_id=TENANT_NAME,
|
||||||
auth_url=AUTH_URL))
|
auth_url=AUTH_URL)
|
||||||
>>> nt.instances.list()
|
>>> nt.instances.list()
|
||||||
[...]
|
[...]
|
||||||
|
|
||||||
|
@@ -102,7 +102,8 @@ class OpenStackTroveShell(object):
|
|||||||
|
|
||||||
parser.add_argument('--version',
|
parser.add_argument('--version',
|
||||||
action='version',
|
action='version',
|
||||||
version=troveclient.__version__)
|
version=troveclient.__version__,
|
||||||
|
help="Show program's version number and exit.")
|
||||||
|
|
||||||
parser.add_argument('--debug',
|
parser.add_argument('--debug',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
|
Reference in New Issue
Block a user