CommandLineUtils icon indicating copy to clipboard operation
CommandLineUtils copied to clipboard

[Question] Syntax of templates

Open vmelamed opened this issue 2 years ago • 1 comments

I could not find it so far but is there something more to templates' syntax than just: <short option>|<long option> {<value>}. For example, can I specify <short option>|<long option> [<value1>|<value2>|<value3>] (specify the three possible values for the option), or <short option>|<long option> <key>=<value>} (specify a tuple or if multiple - a dictionary), etc.

vmelamed avatar Aug 02 '23 18:08 vmelamed

This is something the documentation could clarify. But in the absence of that, here are the test cases which demonstrate currently supported syntax:

https://github.com/natemcmaster/CommandLineUtils/blob/81199c7ec68367ea9612be55719dc1fe08f658da/test/CommandLineUtils.Tests/CommandOptionTests.cs#L12-L31

natemcmaster avatar Aug 09 '23 03:08 natemcmaster

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please comment if you believe this should remain open, otherwise it will be closed in 14 days. Thank you for your contributions to this project.

github-actions[bot] avatar Aug 09 '24 01:08 github-actions[bot]