Skip to content

[UUF] System.CommandLine app throws exception #51291

@gewarren

Description

@gewarren

Type of issue

Code doesn't work

Description

Some of the instructions are incorrect. Possibly due to updates. For example, after displaying the finalized and finished application code, you instruct the reader to run: scl quotes read --file nofile. However, this still throws the stack trace exception. Adding a fileOptions.Validators.Add func can resolve this, but as this is outlined now the fileOption DefaultValueFactory does not execute for the quotes command.

Page URL

https://learn.microsoft.com/en-us/dotnet/standard/commandline/get-started-tutorial

Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/commandline/get-started-tutorial.md

Document Version Independent Id

fa160b1d-66ed-8c5d-37cd-b7e02443e9f1

Platform Id

0f144444-1ce3-cdf7-87a6-c659d44e08d3

Article author

@gewarren

Metadata

  • ID: 7705dc41-7297-0807-7e9c-2e6548c26b84
  • PlatformId: 0f144444-1ce3-cdf7-87a6-c659d44e08d3
  • Service: dotnet-fundamentals

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Status

🔖 Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions