usnistgov / macos_security

macOS Security Compliance Project
Other
1.79k stars 202 forks source link

Undefined reference to 'parser' in main() of generate_baseline.py #401

Closed seanchristians closed 1 week ago

seanchristians commented 4 months ago

In the first except statement in the main() function of generate_baseline.py there is an undefined reference to parser. Was this supposed to be args instead?

What is the point of the code block anyways? It seems to add a string to the error key of parser which is never referenced.

In the event of an IOError, why is the script expected to continue gracefully? In my opinion this indicates a greater problem with the system and should terminate the script.