• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tamada / fauxrest / 30968267381
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: releases/v0.0.5
DEFAULT BRANCH: main
Ran 05 Aug 2026 02:06AM UTC
Jobs 1
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Aug 2026 02:03AM UTC coverage: 88.415% (+0.7%) from 87.694%
30968267381

Pull #39

github

tamada
fix: send --help and --version to stdout with status 0

clap reports --help and --version as errors alongside genuine usage
mistakes. Treating every clap::Error as a failure sent all three to stderr
with status 1, so `fauxrest --help | less` showed nothing and a script
guarding on `fauxrest --version` saw it fail.

clap::Error::exit already tells them apart: help and version to stdout
with status 0, usage errors to stderr with status 2. Status 1 is left to
mean a build that started and then failed, which is a different thing from
a command line that could not be parsed.

Error::Clap stays on the public error type. Nothing in the binary
constructs it now, but `#[from] clap::Error` still makes it reachable
through `?` for anything building on the library.

tests/test_cli.rs is new: this behaviour only exists at the process
boundary, so it needs the binary rather than a function call. It also
pins that --help does not advertise --format, a flag the README described
for three releases and which never existed.

Closes #38

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #39: fix: send --help and --version to stdout with status 0

1595 of 1804 relevant lines covered (88.41%)

23.57 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
90.29
6.31% src/cmd/main.rs
Jobs
ID Job ID Ran Files Coverage
1 30968267381.1 05 Aug 2026 02:06AM UTC 9
88.41
GitHub Action Run
Source Files on build 30968267381
  • Tree
  • List 9
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30968267381
  • Pull Request #39
  • PR Base - main (#30956826488)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc