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

Add verbosity flag to determine whether library prints to stdout #414

Open
edwardhartnett opened this issue May 25, 2023 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@edwardhartnett
Copy link
Contributor

Currently the library prints error messages. For example from getidx():

  else
     nlen = 0
     nnum = 0
     print *, ' '
     print *, ' error reading index file '
     print *, ' '
     iret = 96
     return

Libraries should not print anything. The calling application is in charge of stdout and can decide whether or not to print anything. The library simply should return an error code.

So we need a setting for verbosity. If it's turned off, no messages are ever printed to stdout.

Not sure how to handle this global setting...

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

No branches or pull requests

1 participant