[FEATURE] ability to add custom arguments to cli

Open
#5,009 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
build-system, cli

Research direction

Start by locating the CLI argument-parsing entry points and the target-rule handling that currently uses SCons argument variables. Trace how command-line values reach a build target, then determine where a dedicated API or variable should expose custom arguments. Done means a target can declare an argument such as --sign_key and receive its parsed value when invoked from the CLI.

Written by the indexing model from the issue text.

Description

build system feature

What kind of issue is this?

  • Feature Request.
    Sometimes I want to create a target rule that can have an argument from the command line (like specify a key file etc)
Expected Results

Something like add_argument("--sign_key") and have it parsed using either the scons argument variable or a dedicated api

Dominant language
Python
Stars
9.6k
Forks
916
PR merge metrics
No merged PRs in 30d

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 platformio/platformio-core

All issues in platformio/platformio-core

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.