repo CLI: --json before the leaf name prints no document

Open Beginner friendly
#683 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
cli

Research direction

Start with the root extras check at dokimi/cli.py:83 and trace how the --json flag is stored when it appears before the repo leaf name. Reproduce with dokimi --json repo validate . --bogus and compare with the flag after the name. Done when the command emits the expected JSON error document regardless of flag position.

Written by the indexing model from the issue text.

Description

Raised in the review of PR #590 (intel/dokimi), thread PRR_kwDOVBg7g88AAAABXrLtSQ.c: https://github.com/intel/dokimi/pull/590

Found in PR #590 review. On main and on the PR, dokimi --json repo validate . --bogus exits 2 with empty stdout: the root extras check reads json from the leaf namespace (dokimi/cli.py:83), which is unset when the flag comes before the name. Outside the PR's lines.

Not fixed in PR #590: it is outside the lines that PR changes (another component, a design change, or too large for the round).

Dominant language
Python
Stars
39
Forks
13
Avg merge
1d 10h
Merged PRs (30d)
519

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intel/dokimi

All issues in intel/dokimi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.