openedx / openedx/paragon

[CLI] add error handling for incorrect arguments

Open
#3,954 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
140
Forks
100
Avg merge
1h 3m
Merged PRs (30d)
30

Description

We currently handle unknown commands

https://github.com/openedx/paragon/blob/cce7beb990c61778616ae7d7216ff4fbc609a100/bin/paragon-scripts.js#L260

but not unknown arguments for those commands.

Adding error handling for this would be a huge dev expereince win for theme authors.

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 in bin/paragon-scripts.js around line 260, where unknown commands are currently handled, and trace how arguments are parsed for each command. Done means incorrect arguments produce clear error handling rather than being silently accepted, while existing unknown-command handling continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.