Skip to content

Conversation

john-h-kastner
Copy link
Collaborator

We previously used the _3COptions structure to store command line options immediately after they were parsed, but later copied the option value out of this structure and into global variables to use in the rest of the program. This pull request deletes the global variables, and replaces them with a global _3COptions structure.

@mattmccutchen-cci mattmccutchen-cci changed the title Commad line options clean up Command line options clean up Aug 27, 2021
Copy link
Member

@kyleheadley kyleheadley left a comment

Choose a reason for hiding this comment

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

I like it, it makes the code easier to understand.

Copy link
Member

@mattmccutchen-cci mattmccutchen-cci left a comment

Choose a reason for hiding this comment

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

This is a good cleanup. I'm a little late here, but I do have two concerns I hope you'll agree are worth considering. I'm "requesting changes" to get your attention, but we can dismiss my review if we decide not to address the issues.

@john-h-kastner john-h-kastner merged commit fd4d8af into main Aug 30, 2021
john-h-kastner added a commit that referenced this pull request Oct 25, 2021
This is a follow up PR from #692 that moves all command line options into the
_3COptions structure, moves all of 3C's command line options into the same
category so that all options are shown by -help (fixes #393), and reformats some
of the code around creating command line options.

It also removes the the option -enable-itypeprop which was not referenced
anywhere in the code.
@Machiry Machiry deleted the options_cleanup branch January 22, 2022 15:37
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.

3 participants