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

bin/pinto --version returns non-zero exit status #215

Open
bigunyak opened this issue Sep 1, 2015 · 2 comments
Open

bin/pinto --version returns non-zero exit status #215

bigunyak opened this issue Sep 1, 2015 · 2 comments

Comments

@bigunyak
Copy link

bigunyak commented Sep 1, 2015

While puppetising Pinto installation I stumbled on bin/pinto --version command returning non-zero exit status code which indicates failure and puppet stops the deployment.
I went around this by setting returns parameter for exec resource, but it's just doesn't look nice. Could you please fix this small issue.
I guess it's related to #132 but I decided to open a fresh ticket.

@thaljef
Copy link
Owner

thaljef commented Jul 26, 2016

This exit status comes from App::Cmd which provides the --version functionality. @rjbs, do you have an opinion on the exit status of --version (and presumably --help as well)?

@rjbs
Copy link

rjbs commented Jul 27, 2016

~$ dzil --version
dzil (Dist::Zilla::App) version 6.006 (/Users/rjbs/.plenv/versions/24.0/bin/dzil)
~$ echo $?
0

…and I get the same with other App::Cmd-based things. I don't think this is App::Cmd's doing alone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants