Skip to content
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

Description Localization #117

Open
gnimor opened this issue May 29, 2017 · 1 comment
Open

Description Localization #117

gnimor opened this issue May 29, 2017 · 1 comment
Labels

Comments

@gnimor
Copy link

gnimor commented May 29, 2017

Hi,

I am looking for a way to provide a localized description. Currently the attribute only supports to enter a constant string like:

[ArgDescription("My description")]

So I have no chance to provide a localized description via the "Resources". So did I miss something here or is this a known issue?

@adamabdelhamed
Copy link
Owner

You can use the OM. The attributes only support constants, but the OM lets you programmatically construct your program's model. Create an instance of CommandLineArgumentsDefinition given the same type that you would normally send to one of the Args methods. The definition has an Arguments collection that lets you see each argument. After you find the argument you are looking for you can set the Description property. There are some examples of using the OM here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants