Skip to content

Fix argument parsing for '--precluster-ani'#8

Merged
wwood merged 1 commit intowwood:masterfrom
apcamargo:master
Sep 1, 2020
Merged

Fix argument parsing for '--precluster-ani'#8
wwood merged 1 commit intowwood:masterfrom
apcamargo:master

Conversation

@apcamargo
Copy link
Copy Markdown
Contributor

Hey @wwood

I was testing the new release and I noticed that every time I used --precluster-ani I got the following error:

error: Found argument '--precluster-ani' which wasn't expected, or isn't valid in this context
	Did you mean --precluster-method?

Using prethreshold-ani instead worked as expected.

It seems clap only recognizes the last long name you define for the argument. Because precluster-ani is how this argument is called in the manual, I removed the line that sets prethreshold-ani as the long name.

@wwood
Copy link
Copy Markdown
Owner

wwood commented Sep 1, 2020

Thanks. I thought I'd fixed this actually, but clearly hadn't. Pity clap cannot handle multiple .long arguments, now maintaining backwards compatibility is too painful. I will also add something to the release notes.

Hope you like the new release more generally.
ben

@wwood wwood merged commit 94da262 into wwood:master Sep 1, 2020
@apcamargo
Copy link
Copy Markdown
Contributor Author

apcamargo commented Sep 2, 2020

Thanks!

The new release seems great! Thanks for your hard work on it.

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