fiatjaf on Nostr: Suppose you're using a CLI too that takes multiline input from stdin and processes it ...
Suppose you're using a CLI too that takes multiline input from stdin and processes it one line at a time, printing the results of each line sequentially.
What is the correct behavior in case one of these stdin lines causes an error? To immediately halt the execution or to print an error message to stderr and continue on the next line? Do you have an example of a CLI tool that does it right?
What is the correct behavior in case one of these stdin lines causes an error? To immediately halt the execution or to print an error message to stderr and continue on the next line? Do you have an example of a CLI tool that does it right?