From bc11c4d7d8fef1d8eef3bb8f5fa18e27b9ea2964 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 14 Jan 2015 18:44:10 -0600 Subject: Deprecate project usage list command Rather than pointing the 'project usage list' entry point directly to ListUsage, this makes a ListProjectUsage subclass to alias the desired command and still allow for changing behaviour or issuing a deprecation messages. This implementation simply sets a new 'deprecated' attribute in the command class that cliff will use to skip this command when generating help output. The actual skipping of the command in help output is dependant on https://review.openstack.org/147349 merging in cliff, this review will simply have no effect on help output until a version of cliff with that update is present. The deprecation message printed is somewhat generic until https://review.openstack.org/147381 is merged in cliff. Until that is merged, the deprecation message will not have the name of the actual command given by the user in it, but rather the text 'this command'. Closes-bug: #1406654 Change-Id: Ie08d4f88d71a660fca1862405351109cd0aa86b6 --- doc/source/command-objects/usage.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/source/command-objects') diff --git a/doc/source/command-objects/usage.rst b/doc/source/command-objects/usage.rst index 551176c7..0c866086 100644 --- a/doc/source/command-objects/usage.rst +++ b/doc/source/command-objects/usage.rst @@ -18,7 +18,7 @@ List resource usage per project .. option:: --start - Usage range start date, ex 2012-01-20 (default: 4 weeks ago). + Usage range start date, ex 2012-01-20 (default: 4 weeks ago) .. option:: --end @@ -27,7 +27,7 @@ List resource usage per project usage show ---------- -Show resource usage for a single project. +Show resource usage for a single project .. program:: usage show .. code:: bash @@ -39,11 +39,11 @@ Show resource usage for a single project. .. option:: --project - Name or ID of project to show usage for. + Name or ID of project to show usage for .. option:: --start - Usage range start date, ex 2012-01-20 (default: 4 weeks ago). + Usage range start date, ex 2012-01-20 (default: 4 weeks ago) .. option:: --end -- cgit v1.2.1