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

Parse processor properties #6

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

justinpitts
Copy link

Hi Matt. Thank you for this tool!

I needed to be able to pass processor properties to one of the scripted processors I am working on.

This patch does two things:

  1. It makes use of a library, picocli, to parse command-line input. I did this to simplify any future additions to the cli.
  2. It adds a cli option, -properties that, like -attrs, specifies a path to a properties file. The contents of this file are mapped to the processor properties.

I also tried to consolidate input validation tasks to one place.

Please let me know what I can do to make this a palatable contribution for your project.

Pull out the logic for parsing the commnand line, and
pull the command line options into their own class.
Adds a command-line option, -properties
If it is specified, load a properties file and
add each key and value to the script processor properties.
Perform validation in the parseCommandLine method, for consistency.
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.

1 participant