[UUF] System.CommandLine app throws exception
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 19h 10m
- Merged PRs (30d)
- 268
Description
### 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](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+fa160b1d-66ed-8c5d-37cd-b7e02443e9f1)
Contributor guide
Assessment
This issue has not been assessed yet.