Add heuristic parsing when command flag json is missing.

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
cli

Research direction

Start by locating the command parser and the handling for a missing flag json file. Review any existing parser tests or command-parsing entry points before adding the lightweight heuristic described in the issue. Done means arguments with a - prefix can be recognized as flags while other arguments remain operands when no flag json file is available.

Written by the indexing model from the issue text.

Description

A command missing a flag json file will conservatively assume all arguments are operands. The parser can be extended to have some lightweight heuristics (e.g., consider all arguments with a - prefix as flags).

This can be useful to correctly parse more commands without additional effort.

Dominant language
Python
Stars
4
Forks
7
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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 binpash/annotations

All issues in binpash/annotations

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.