commandlineparser / commandlineparser/commandline

Can I use command without verb when verbs are declared?

Open
#603 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

Is it possible to use verbs with options like this:
`app.exe install --name someName --version 1.0.0`
and have command which doesn't use verb and use only value attribute such as:
`app.exe someName stream`
I need to do this for backwards compatibility of my application.

Contributor guide

No contributing guide indexed for this repository

Research direction

Review how declared verbs, options, and value attributes are parsed, then compare the requested verb-based invocation with the backwards-compatible invocation. Determine whether both forms can be supported without ambiguity and define the expected behavior before identifying the relevant parser tests.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.