dotnet / dotnet/sdk

Avoid modifying commands in help writer

Open
#52,136 1 comment 0 reactions 1 assignee Claimed by @MiYanni View on GitHub
Area-CLI untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

This code modifies existing Command instances or their arguments/options:

https://github.com/dotnet/sdk/blob/32c515a7303abe937aef8e183bdd896e7ccb93bb/src/Cli/dotnet/Parser.cs#L401-L420

Command instances are stored in static fields and hence this code modifies global state.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.