Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

traceback if run w/ no args #5

Open
jamescassell opened this issue Aug 5, 2019 · 2 comments
Open

traceback if run w/ no args #5

jamescassell opened this issue Aug 5, 2019 · 2 comments

Comments

@jamescassell
Copy link
Contributor

Would expect some error, or usage text instead. Also, maybe it's an issue w/ the CIS parsing code?

@shepdelacreme
Copy link
Owner

Yeah...I don't think it is anything to do with the CIS parsing code, just an issue with my python :)

Can you provide the command as run?

I'm assuming you literally ran it without any arguments, which means you didn't specify the benchmark file input -X or --xccdf. That argument should be marked required=True or I guess it should maybe change to be a positional instead of an optional argument type since it isn't optional.

Without a benchmark file, it will bomb out in the class __init__ function since it tries to open that file without any exception handling code.

@jamescassell
Copy link
Contributor Author

yeah, it was literally python ~/src/benchparse.py or chmod +x src/benchparse.py ; src/benchparse.py

Sounds like it was just user error, but I did waste a few minutes on it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants