-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[main] Update dependencies from dotnet/command-line-api #33126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a93456e
27f25dc
35c9c70
7aa4ec2
0c7a1dd
8167084
b55ba25
90754b0
6d16402
d1822d8
898ce04
1965507
d2818e1
82f4ac3
3a9f452
062b7dd
2783865
707a22d
ef551fa
c43d997
6e207d2
55cf39a
f144469
016cb20
f0d3b50
c146b96
41f78d5
d2ff86e
7e707b3
bdb4668
dac42ad
8755e93
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,10 @@ namespace Microsoft.DotNet.Cli | |
| { | ||
| public static class Parser | ||
| { | ||
| public static readonly CliRootCommand RootCommand = new(); | ||
| public static readonly CliRootCommand RootCommand = new() | ||
| { | ||
| Directives = { new DiagramDirective(), new SuggestDirective() } | ||
| }; | ||
|
|
||
| internal static Dictionary<CliOption, Dictionary<CliCommand, string>> HelpDescriptionCustomizations = new(); | ||
|
|
||
|
|
@@ -162,9 +165,7 @@ public static bool TokenPerLine(string tokenToReplace, out IReadOnlyList<string> | |
| public static CliConfiguration Instance { get; } = new(ConfigureCommandLine(RootCommand)) | ||
| { | ||
| EnableDefaultExceptionHandler = false, | ||
| EnableParseErrorReporting = true, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we remove the error reporting here and in the other place? S.CL uses this for reporting parse errors in a nice way - I'm actually pretty confused why our tests pass with such a large change!
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feature was changed and this property no longer exists on this class. There is a discussion here that you responded to. This concept is bound to the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wow I completely forgot about both of those things 😅 Thank you for the reminder, and the explanation! All good from my end now. |
||
| EnablePosixBundling = false, | ||
| Directives = { new DiagramDirective(), new SuggestDirective() }, | ||
| ResponseFileTokenReplacer = TokenPerLine | ||
| }; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity why was this newline needed? Did formatting change upstream or something?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It did. The help output logic was changed and normalized. As you can see, previously, every other section here had an added
WriteLineadded to it except this one. It was likely being added (by accident) in the previous versions of S.CL.I had to add it here so that the tests for checking help output passed and remained the same as expected.