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

Print command line syntax #25

Merged

Conversation

theimowski
Copy link
Member

This is something we could make use of in fsprojects/Paket#514 when generating docs

@eiriktsarpalis
Copy link
Member

Thanks. Couple of thoughts:

I think that an argument with at least two names and is mandatory will render like this:

--arg-name|--alt-arg-name <string>

Is this to be expected?

Also, [<Rest>] arguments are not presented in the printed syntax. Compare with https://github.com/nessos/UnionArgParser/blob/master/src/UnionArgParser/UnParsers.fs#L38

Could you address these issues in the PR?

@theimowski
Copy link
Member Author

Sure, will do

@eiriktsarpalis
Copy link
Member

Thanks!

@theimowski
Copy link
Member Author

an argument with at least two names and is mandatory will render like this:

(--arg-name|--alt-arg-name) <string>

[<Rest>] is handled with ...

Also, I ordered the args by [<First>] and then by [<Rest>]

eiriktsarpalis added a commit that referenced this pull request Feb 5, 2015
@eiriktsarpalis eiriktsarpalis merged commit 02dfd11 into fsprojects:master Feb 5, 2015
@eiriktsarpalis
Copy link
Member

Merged, thanks!

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

Successfully merging this pull request may close these issues.

2 participants