Validate argument input

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust, shell
Domain
cli

Research direction

Review the existing argument specification and the parse hook, then compare how just documents regex-based recipe parameter validation. Define the supported validation behavior and its documentation, with completion shown by a documented, working way to reject invalid arguments without a custom shell-script workaround.

Written by the indexing model from the issue text.

Description

Currently, there is no documented way to validate the argument input using usage. It is possible to do this with a simple shell script passed as parse, but this is kludgey and prone to error. This is a substantial limitation for mise relative to just which accomplishes this with regex.

Perhaps there is some undocumented way to accomplish this?

Dominant language
Rust
Stars
1k
Forks
59
Avg merge
5h 58m
Merged PRs (30d)
362

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.

More from jdx/usage

All issues in jdx/usage

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.