Skip to content

Enhancement: Enhance command line arguments to override single variables to support lists #511

@georgemccabe

Description

@georgemccabe

You can specify variables on the command line when calling master_metplus.py like this:

master_metplus.py -c config.PROCESS_LIST=EnsembleStat

However, you cannot pass in a list of items, even if the list is surrounded by quotes:

master_metplus.py -c config.PROCESS_LIST="EnsembleStat,GridStat"

This is likely due to the logic to parse the command line arguments splitting items by comma without considering if it is within quotes. There is a function in the utility code that handles this situation already.

Issue #510 is related and could be done at the same time while this logic is being touched.

Describe the Enhancement

See description above.

Time Estimate

Estimate the amount of work required here.
Issues should represent approximately 1 to 3 days of work.

Sub-Issues

Consider breaking the enhancement down into sub-issues.

  • Add a checkbox for each sub-issue here.

Relevant Deadlines

MUST be completed by 12/30/2024

Funding Source

7730022

Define the Metadata

Assignee

  • Select engineer(s) or no engineer required
  • Select scientist(s) or no scientist required

Labels

  • Select component(s)
  • Select priority
  • Select requestor(s)

Projects and Milestone

  • Review projects and select relevant Repository and Organization ones
  • Select milestone

Define Related Issue(s)

Consider the impact to the other METplus components.

Enhancement Checklist

See the METplus Workflow for details.

  • Complete the issue definition above.
  • Fork this repository or create a branch of develop.
    Branch name: feature_<Issue Number>_<Description>
  • Complete the development and test your changes.
  • Add/update unit tests.
  • Add/update documentation.
  • Push local changes to GitHub.
  • Submit a pull request to merge into develop.
    Pull request: feature <Issue Number> <Description>
  • Iterate until the reviewer(s) accept and merge your changes.
  • Delete your fork or branch.
  • Close this issue.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions