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

Fix for passing of command line options from lfc to the generator #1631

Merged
merged 3 commits into from
Mar 10, 2023

Conversation

cmnrd
Copy link
Collaborator

@cmnrd cmnrd commented Mar 9, 2023

Currently, all command line options that need to be passed on from lfc to the code generator do not work. The reason for this, is that the long option names (e.g. --clean) are compared with the property names (e.g. clean). This change provides a fix. Concretely, it replaces the automagic passing in a for loop from before with explicit code for each individual option. While it is a bit more verbose, this has some advantages:

  • The code is readable and understandable
  • IntelliJ produces a useful warning when an option is not used and therefore not passed on

This change further removes some unused code and includes other small cleanups. All in all, this removes all warnings shown by IntelliJ.

Currently, all command line options that need to be passed on from lfc to the
code generator do not work. This change provides a fix. Concretely, it replaces
the automagic passing in a for loop from before with explicit code for each
individual option. While it is a bit more verbose, this has some advantages:
- The code is readable and understandable
- IntelliJ produces a useful warning when an option is not used and therefore
not passed on

This change further removes some unused code and includes other small cleanups.
All in all, this removes all warnings shown bu IntelliJ.
@cmnrd cmnrd added the bugfix label Mar 9, 2023
Copy link
Collaborator

@patilatharva patilatharva left a comment

Choose a reason for hiding this comment

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

Thank you for this fix!

@lhstrh
Copy link
Member

lhstrh commented Mar 10, 2023

This bugfix warrants a patch release...

@lhstrh lhstrh merged commit 481fae1 into master Mar 10, 2023
@lhstrh lhstrh deleted the fix-lfc branch March 10, 2023 01:50
@cmnrd cmnrd mentioned this pull request Mar 10, 2023
@cmnrd
Copy link
Collaborator Author

cmnrd commented Mar 10, 2023

Did we merge the picocli PR before the release? I think it wasn't in there. It also does not show in the release notes.

@lhstrh
Copy link
Member

lhstrh commented Mar 10, 2023 via email

@petervdonovan petervdonovan changed the title Fix passing of command line options from lfc to the generator Fix for passing of command line options from lfc to the generator Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants