In `gotpm` properly handle usage
Open
- Dominant language
- C
- Stars
- 309
- Forks
- 118
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 33
Description
Right now we display the usage errors on virtually all errors. This clutters the output and is confusing.
We should only display the usage on _usage_ errors. Note, a TPM "permission denied" is not a usage error.
Contributor guide
Research direction
Start at the gotpm command's error-handling entry point and trace how usage is currently displayed for errors. Ensure usage appears only for usage errors, while a TPM permission-denied error remains uncluttered; verify both error paths with the existing tests or command behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100