No new messages since --after MESSAGE_ID
should be considered a warning and exit status should be zero
#1327
Labels
--after MESSAGE_ID
should be considered a warning and exit status should be zero
#1327
Version
v2.44
Flavor
CLI (Command-Line Interface)
Platform
Docker / Linux
Export format
JSON
Steps to reproduce
export --after MESSAGE_ID
for a channel that has no new messages since given IDDetails
I am using the
--after
flag to do incremental scraping, passing the last message ID seen in previous runs to get only new messages since then.The problem is that no new messages results in non-zero exit status, indistinguishable from other more serious errors without resorting to brittle parsing of console output.
A saner behavior would be to treat this as a warning instead of an error, and exit with zero status instead, so that external scripting of the CLI can be simple and reliable.
Checklist
The text was updated successfully, but these errors were encountered: