canonical / canonical/craft-application

Support argument list passthrough

Open
#327 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Enhancement
Dominant language
Python
Stars
14
Forks
29
Avg merge
2d 3h
Merged PRs (30d)
12

Description

What needs to get done

Change command line argument parsing to allow raw arguments to be collected instead of parsed. Inconsistencies related to double dash vs single dash in long options should be addressed.

Why it needs to get done

The test command in Charmcraft (https://github.com/canonical/charmcraft/pull/1660) passes the raw command line to spread.

Contributor guide

Open the contributing guide

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.

Research direction

Start by locating the command-line argument parsing entry point and the tests covering long options and double-dash handling. Trace how the Charmcraft test command needs raw arguments passed through to spread; done means raw arguments are preserved and the single-dash versus double-dash behavior is consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.