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

cli/usage test incorrect? #361

Open
rpspringuel opened this issue Feb 4, 2025 · 2 comments
Open

cli/usage test incorrect? #361

rpspringuel opened this issue Feb 4, 2025 · 2 comments

Comments

@rpspringuel
Copy link
Contributor

Why does the usage test not examine the output of calling gregorio without arguments to make sure the usage message is actually being printed? Right now all it does is return the exit code of calling gregorio, which, at least on my system, is 1 when gregorio isn't given a file.

@eschwab
Copy link
Contributor

eschwab commented Feb 4, 2025

I get a 0

elijah: ~$ gregorio-6_0_0 
gregorio-6_0_0: missing file operand.
Usage: gregorio-6_0_0 [OPTION]... [-s | INPUT_FILE]
Try 'gregorio-6_0_0 --help' for more information.

elijah: ~$ echo $?
0

@rpspringuel
Copy link
Contributor Author

Okay, so now I'm getting a 0. I think something strange must have been going on with my system yesterday.

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

2 participants