commandlineparser / commandlineparser/commandline

version and --version giving strange error

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

Description

I'm not sure what I could have done but my application started throwing `Operation is not valid due to the current state of the object.` when `version` or `--version` were called. It was easy to fix by just manually handling the `VersionRequestedError` but I couldnt find the root cause.

Has anyone else had something like this happen?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported `Operation is not valid due to the current state of the object.` error when invoking `version` or `--version`, then trace how `VersionRequestedError` is handled. Done means identifying the root cause and verifying the behavior after it is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.