expose: Better error formatting and generic flag message

Re error formatting:
$ osc expose svc frontend --port=5432 --generator='service/v2' --name=test

Before:
error: generator %!!(MISSING)q(<nil>) not found.
see 'osc expose -h' for help.

Now:
error: generator "services/v2" not found.
see 'openshift cli expose -h' for help.
This commit is contained in:
kargakis
2015-06-02 12:54:09 +02:00
parent 5520386b18
commit 0fba4820f5
3 changed files with 5 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ re\-use the labels from the resource it exposes.
.PP
\fB\-\-name\fP=""
The name for the newly created service.
The name for the newly created object.
.PP
\fB\-\-no\-headers\fP=false