summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2012-08-22 13:01:17 -0500
committerDean Troyer <dtroyer@gmail.com>2012-08-24 15:22:44 -0500
commit9101741960ac4bc9b81539bf6bfb2dedeb7e68d9 (patch)
tree3e93c3e9ea18708c1da43f3ad1ab76ffc4861d71 /README.rst
parent8ccd9059d62a96815c25f6a5ea3510322bc599e6 (diff)
downloadpython-novaclient-9101741960ac4bc9b81539bf6bfb2dedeb7e68d9.tar.gz
Change '_' to '-' in options
This changes every command-line option with a '_' in its name and changes them to '-'. The old option names are maintained for backward compatibility but are no longer in the help text. BP command-options Note: there is a dodgy hack in novaclient/shell.py to handle usage-list's --end option that conflicts with --endpoint-type if --endpoint_type is also present for backward compatibility. If --endpoint_type is not added to the parser it works. Go figure. Better solutions that do not break backward compatibility are welcome. Rebased due to https://review.openstack.org/11072 merging. Note: --availability_zone changed to --availability-zone with no backward compatability since this s a new option. Change-Id: I09ab546659be0a0d3f0eadb22ab5e13fac2f059d
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst63
1 files changed, 34 insertions, 29 deletions
diff --git a/README.rst b/README.rst
index 94f7d980..7886df2e 100644
--- a/README.rst
+++ b/README.rst
@@ -40,14 +40,14 @@ Installing this package gets you a shell command, ``nova``, that you
can use to interact with any Rackspace compatible API (including OpenStack).
You'll need to provide your OpenStack username and password. You can do this
-with the ``--os_username``, ``--os_password`` and ``--os_tenant_name``
+with the ``--os-username``, ``--os-password`` and ``--os-tenant-name``
params, but it's easier to just set them as environment variables::
export OS_USERNAME=openstack
export OS_PASSWORD=yadayada
export OS_TENANT_NAME=myproject
-You will also need to define the authentication url with ``--os_auth_url``
+You will also need to define the authentication url with ``--os-auth-url``
and the version of the API with ``--version``. Or set them as an environment
variables as well::
@@ -60,19 +60,21 @@ endpoint::
export OS_AUTH_URL=http://example.com:5000/v2.0/
Since Keystone can return multiple regions in the Service Catalog, you
-can specify the one you want with ``--os_region_name`` (or
+can specify the one you want with ``--os-region-name`` (or
``export OS_REGION_NAME``). It defaults to the first in the list returned.
You'll find complete documentation on the shell by running
``nova help``::
- usage: nova [--debug] [--os_username OS_USERNAME] [--os_password OS_PASSWORD]
- [--os_tenant_name OS_TENANT_NAME] [--os_auth_url OS_AUTH_URL]
- [--os_region_name OS_REGION_NAME] [--service_type SERVICE_TYPE]
- [--service_name SERVICE_NAME] [--endpoint_type ENDPOINT_TYPE]
- [--version VERSION] [--username USERNAME]
- [--region_name REGION_NAME] [--apikey APIKEY]
- [--projectid PROJECTID] [--url URL]
+ usage: nova [--debug] [--no-cache] [--timings]
+ [--os-username <auth-user-name>] [--os-password <auth-password>]
+ [--os-tenant-name <auth-tenant-name>] [--os-auth-url <auth-url>]
+ [--os-region-name <region-name>] [--os-auth-system <auth-system>]
+ [--service-type <service-type>] [--service-name <service-name>]
+ [--volume-service-name <volume-service-type>]
+ [--endpoint-type <endpoint-type>]
+ [--os-compute-api-version <compute-api-ver>] [--insecure]
+ [--bypass-url <bypass-url>]
<subcommand> ...
Command-line interface to the OpenStack Nova API.
@@ -199,33 +201,36 @@ You'll find complete documentation on the shell by running
Optional arguments:
--debug Print debugging output
- --os_username OS_USERNAME
+ --no-cache Don't use the auth token cache.
+ --timings Print call timing info
+ --os-username <auth-user-name>
Defaults to env[OS_USERNAME].
- --os_password OS_PASSWORD
+ --os-password <auth-password>
Defaults to env[OS_PASSWORD].
- --os_tenant_name OS_TENANT_NAME
+ --os-tenant-name <auth-tenant-name>
Defaults to env[OS_TENANT_NAME].
- --os_auth_url OS_AUTH_URL
+ --os-auth-url <auth-url>
Defaults to env[OS_AUTH_URL].
- --os_region_name OS_REGION_NAME
+ --os-region-name <region-name>
Defaults to env[OS_REGION_NAME].
- --service_type SERVICE_TYPE
+ --os-auth-system <auth-system>
+ Defaults to env[OS_AUTH_SYSTEM].
+ --service-type <service-type>
Defaults to compute for most actions
- --service_name SERVICE_NAME
+ --service-name <service-name>
Defaults to env[NOVA_SERVICE_NAME]
- --endpoint_type ENDPOINT_TYPE
+ --volume-service-name <volume-service-type>
+ Defaults to env[NOVA_VOLUME_SERVICE_NAME]
+ --endpoint-type <endpoint-type>
Defaults to env[NOVA_ENDPOINT_TYPE] or publicURL.
- --os_compute_api_version VERSION
- Accepts 1.1, defaults to env[OS_COMPUTE_API_VERSION].
- --username USERNAME Deprecated
- --region_name REGION_NAME
- Deprecated
- --apikey APIKEY, --password APIKEY
- Deprecated
- --projectid PROJECTID, --tenant_name PROJECTID
- Deprecated
- --url URL, --auth_url URL
- Deprecated
+ --os-compute-api-version <compute-api-ver>
+ Accepts 1.1, defaults to env[OS_COMPUTE_API_VERSION]. --username USERNAME Deprecated
+ --insecure Explicitly allow novaclient to perform "insecure" SSL
+ (https) requests. The server's certificate will not be
+ verified against any certificate authorities. This
+ option should be used with caution.
+ --bypass-url <bypass-url>
+ Use this API endpoint instead of the Service Catalog
See "nova help COMMAND" for help on a specific command.