You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you really expect users to type the input model on stdin?
What I do in Spot is that when there is no specified input, I use isatty(STDIN_FILENO) to check if stdin is a terminal. In that case I simply display an error message like this:
% ltl2tgbaltl2tgba: No formula to translate? Run 'ltl2tgba --help' for help.Use 'ltl2tgba -' to force reading formulas from the standard input.
Entering formulas interactively is still possible, as the message points out, but without arguments it's much more likely that some user is just trying to figure out how to run the tool, so I prefer to abort.
If stdin has been redirected from a file or pipe, the isatty() check will not abort, and passing - explicitly is not necessary.
TChecker silently waits when reading from standard input. A message should be displayed to let the user know what she should provide input.
The text was updated successfully, but these errors were encountered: