diff options
| author | Steve Martinelli <stevemar@ca.ibm.com> | 2015-06-09 17:25:12 -0400 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-06-17 12:38:40 -0400 |
| commit | 2b0013c5c1afe6d2fee5f93cf6928f6f910048c1 (patch) | |
| tree | 87413a7156db9480e41a5fc158d20152bd2f097e /openstackclient/identity/v3/trust.py | |
| parent | c508162d53eca70596ab28333982185cf27d1c38 (diff) | |
| download | python-openstackclient-2b0013c5c1afe6d2fee5f93cf6928f6f910048c1.tar.gz | |
Refactor option handling for user|group|project domain scoping
put the common options in identity.common, this way the help is
consistent
Change-Id: I5b09cfb56fa0f8d16feb95150f216fccbe9f2b22
Diffstat (limited to 'openstackclient/identity/v3/trust.py')
| -rw-r--r-- | openstackclient/identity/v3/trust.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/openstackclient/identity/v3/trust.py b/openstackclient/identity/v3/trust.py index ab6673d2..c8e5c4c7 100644 --- a/openstackclient/identity/v3/trust.py +++ b/openstackclient/identity/v3/trust.py @@ -71,19 +71,15 @@ class CreateTrust(show.ShowOne): help='Sets an expiration date for the trust' ' (format of YYYY-mm-ddTHH:MM:SS)', ) - parser.add_argument( - '--project-domain', - metavar='<domain>', - help='Domain that contains <project> (name or ID)', - ) + common.add_project_domain_option_to_parser(parser) parser.add_argument( '--trustor-domain', - metavar='<domain>', + metavar='<trustor-domain>', help='Domain that contains <trustor> (name or ID)', ) parser.add_argument( '--trustee-domain', - metavar='<domain>', + metavar='<trustee-domain>', help='Domain that contains <trustee> (name or ID)', ) return parser |
