Refuse bad command-line arguments cleanly
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start at main, where the issue says argument parsing uses env::args; inspect how it handles the config path and invalid arguments. Check the existing command-line tests or run tinyobserve with a non-UTF-8 argument and with --config --check. Done means both cases print usage and exit 2 without panicking.
Written by the indexing model from the issue text.
Description
As an operator starting tinyobserve by hand,
I want a mistyped command line to print the usage,
so that I never get a crash or a config path that is really a flag.
Acceptance criteria
- Given an argument that is not valid UTF-8, when tinyobserve starts, then it prints the usage and exits 2 instead of panicking.
- Given a flag where the config path should be (for example
--config --check), when tinyobserve starts, then it prints the usage and exits 2.
Success signal: no panic from argument parsing.
Out of scope: new flags.
Open questions: none.
Technical notes
Found during #259 (PR #265): main uses env::args, which panics on non-UTF-8 input. These problems existed before that PR.
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- Avg merge
- 40m
- Merged PRs (30d)
- 91
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jdrouet/tinyobserve
-
area:ops chore priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jdrouet/tinyobserve#267 ·
Maintainers usually reply within 1 day
-
area:dashboards bug priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
jdrouet/tinyobserve#263 ·
Maintainers usually reply within 1 day
-
area:dashboards bug priority:low ready
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
jdrouet/tinyobserve#260 · 1 comment ·
Maintainers usually reply within 1 day
-
chore priority:medium
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
jdrouet/tinyobserve#256 · 1 comment ·
Maintainers usually reply within 1 day
-
area:ui bug priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jdrouet/tinyobserve#255 ·
Maintainers usually reply within 1 day
All issues in jdrouet/tinyobserve
Similar issues
-
[Bug]: streaming_end_of_stream_only guardrails rescan the whole stream on every chunk - blocks event loopPossibly taken A pull request linked to this issue is open or already merged. Openbug llm translation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
build comp-keeper
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ClickHouse/ClickHouse#137202 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
storytold/photocraft#20056 ·
Maintainers usually reply within 1 day
-
accessibility agent-ready area:android bug fleet needs-qa
Difficulty 2/5 1-3 hours Newbie friendliness 69/100