Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Validate enodeurl syntax from command line #403

Merged
merged 6 commits into from
Dec 12, 2018

Conversation

lucassaldanha
Copy link
Contributor

PR description

Now we are using EnodeToURIPropertyConverter to parse enode URLs from the command line. This applies to --bootnodes and --nodes-whitelist. Also, we are now keeping them as URI instances instead of Strings.

Unfortunately, Picocli doesn't handle well error messages for lists that accept zero elements (--nodes-whitelist). Therefore, the error message when using an invalid enode URL for this property is not as helpful as when you try to do the same with --bootnodes. I'll raise a JI ticket to investigate exxtending Picocli DefaultExceptionHandler to improve the error message for lists with arity 0..*.

@lucassaldanha
Copy link
Contributor Author

This is the JI about improving the error messages: NC-2015

Copy link
Contributor

@macfarla macfarla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lucassaldanha lucassaldanha merged commit a4c50e5 into PegaSysEng:master Dec 12, 2018
@lucassaldanha lucassaldanha deleted the validate-enodeurl branch December 12, 2018 03:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants