Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refs #1074 - Error message "Required argument {ARGUMENT NAME} missing for command {commandName}..."#1993

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Drizin wants to merge1 commit intodotnet:main
base:main
Choose a base branch
Loading
fromDrizin:feature-1074

Conversation

@Drizin
Copy link

Previously it was "Required argument missing for command: {commandname}" - now we have better clarity as to which argument is missing.

Forge36 reacted with thumbs up emoji
… {commandname}", should provide "Required argument {argumentname} missing for command: {commandname}" for better clarity as to which required argument is missing.
publicNonWindowsOnlyFactAttribute()
{
if(RuntimeEnvironment.OperatingSystemPlatform==Platform.Windows)
if(RuntimeEnvironment.OperatingSystemPlatform==Microsoft.DotNet.PlatformAbstractions.Platform.Windows)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

That looks unrelated. There is a similar change elsewhere in this PR.

jonsequitur reacted with thumbs up emoji
/// </summary>
publicvirtualstringRequiredArgumentMissing(Argumentargument,SymbolResultsymbolResult)=>
symbolResultisCommandResult
?GetResourceString(Properties.Resources.CommandRequiredArgumentMissing,argument.Name,symbolResult.Token().Value)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

In the development version I think this should prefer HelpName if set.

Comment on lines 104 to 107
publicvirtualstringRequiredArgumentMissing(SymbolResultsymbolResult)=>
symbolResultisCommandResult
?GetResourceString(Properties.Resources.CommandRequiredArgumentMissing,symbolResult.Token().Value)
?GetResourceString(Properties.Resources.CommandRequiredArgumentMissing,"(unknown)",symbolResult.Token().Value)
:GetResourceString(Properties.Resources.OptionRequiredArgumentMissing,symbolResult.Token().Value);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Because#2041 made LocalizationResources internal, you can just delete this overload. Then there won't be an "(unknown)" string that might have to be localised.

jonsequitur reacted with thumbs up emoji
@TMUNYU
Copy link

Any eta for this PR?


<ItemGroup>
<InternalsVisibleToInclude="System.CommandLine.NamingConventionBinder" />
<InternalsVisibleToInclude="System.CommandLine.Tests" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It's good to avoid making internals visible to tests.

@jonsequitur
Copy link
Contributor

There are unaddressed comments and merge conflicts that need to be resolved.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jonsequiturjonsequiturjonsequitur left review comments

+1 more reviewer

@KalleOlaviNiemitaloKalleOlaviNiemitaloKalleOlaviNiemitalo left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@Drizin@TMUNYU@jonsequitur@KalleOlaviNiemitalo

[8]ページ先頭

©2009-2025 Movatter.jp