FiloSottile / FiloSottile/torchwood

Reject trailing arguments / missing params?

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
29
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Just a minor nit: would be nice from a ux perspective if this failed:

```
poc-witness@www:~$ ~/go/bin/witnessctl list-logs ~/.local/share/litewitness/database && echo "hi"
hi
```

(Noticed this when omitting `-db` by mistake.

Contributor guide

Open the contributing guide

Research direction

Start at the witnessctl list-logs command entry point and reproduce the shown invocation, including the omitted -db case. Trace how trailing and missing arguments are handled; done means both invalid forms fail instead of continuing to execute the following shell command.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.