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

The command tool does not correctly parse custom substitution parameters #617

Closed
teo-tsirpanis opened this issue Oct 18, 2020 · 0 comments · Fixed by #618
Closed

The command tool does not correctly parse custom substitution parameters #617

teo-tsirpanis opened this issue Oct 18, 2020 · 0 comments · Fixed by #618

Comments

@teo-tsirpanis
Copy link
Contributor

If we run dotnet fsdocs build --parameters foo bar yoshi sbubby, the command tool prints

Substitutions/parameters:
  foo --> bar
  bar --> yoshi
  yoshi --> sbubby

while the correct answer should have been

Substitutions/parameters:
  foo --> bar
  yoshi --> sbubby

Moreover, if we pass an odd number of arguments to --parameters the tool should fail but it doesn't.


The problem is that the function that parses the arguments uses Seq.pairwise which groups the items of a sequence in overlapping pairs.

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 a pull request may close this issue.

1 participant