Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Option --url is not mandatory #62

Merged
merged 1 commit into from
Aug 15, 2019
Merged

Option --url is not mandatory #62

merged 1 commit into from
Aug 15, 2019

Conversation

jhernand
Copy link
Collaborator

In a recent patch we replaced os.Exit(...) with the Cobra error
handling mechanism. A side effect of that change is that the --url
option was marked as mandatory. This makes the application fail if it
isn't explicity used even if it has a default value. This patch changes
the application so that it isn't mandatory. Instead we just check that
it isn't empty.

Related: #61

In a recent patch we replaced `os.Exit(...)` with the Cobra error
handling mechanism. A side effect of that change is that the `--url`
option was marked as mandatory. This makes the application fail if it
isn't explicity used even if it has a default value. This patch changes
the application so that it isn't mandatory. Instead we just check that
it isn't empty.

Related: #61
Signed-off-by: Juan Hernandez <jhernand@redhat.com>
@jhernand
Copy link
Collaborator Author

FYI: @cblecker

@jhernand jhernand merged commit 5dd6c0e into openshift-online:master Aug 15, 2019
@jhernand jhernand deleted the url_option_is_not_mandatory branch August 15, 2019 13:48
@jhernand jhernand mentioned this pull request Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant