Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow "cylc graph --help" in absence of X environment. #2247

Merged
merged 1 commit into from
May 5, 2017

Conversation

hjoliver
Copy link
Member

(what it says).

@hjoliver hjoliver added the bug Something is wrong :( label Apr 22, 2017
@hjoliver hjoliver added this to the next release milestone Apr 22, 2017
@hjoliver hjoliver self-assigned this Apr 22, 2017
@hjoliver hjoliver requested a review from matthewrmshin April 22, 2017 22:56
@hjoliver hjoliver requested a review from oliver-sanders April 24, 2017 04:21
@matthewrmshin matthewrmshin requested review from arjclark and removed request for oliver-sanders April 24, 2017 10:57
@matthewrmshin
Copy link
Contributor

@arjclark please sanity check.

@@ -204,6 +207,9 @@ def main():

(options, args) = parser.parse_args()

if no_x:
sys.exit(1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just return/sys.exit(0) if --help is used? Doesn't seem like it should be a non-zero exit code as its successfully printing help details...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--help causes the script to exit before this point... and I just confirmed this really is the case by faking a gtk ImportError.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, good to go then

@arjclark arjclark merged commit 76ec035 into cylc:master May 5, 2017
@hjoliver hjoliver deleted the make-no-x-env branch May 5, 2017 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants