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

Confusing error message on incorrect parameters #2446

Open
kosack opened this issue Nov 2, 2023 · 1 comment
Open

Confusing error message on incorrect parameters #2446

kosack opened this issue Nov 2, 2023 · 1 comment

Comments

@kosack
Copy link
Contributor

kosack commented Nov 2, 2023

Describe the bug

Including a parameter that doesn't exist gives an unexpected error message (I found this when testing #2444 )

ctapipe-process --input events.simtel.zst --config base_config.yaml \
    --config stage1_config.yaml --output events.dl1.h5 \
    --log-level=INFO --wrong-parameter 
    --max-events=100 --overwrite

ctapipe-process: error: argument --wrong-parameter: expected one argument

Expected behavior

Should say --wrong-parameter is not a valid option or similar.

@kosack kosack added the bug label Nov 2, 2023
@kosack
Copy link
Contributor Author

kosack commented Nov 2, 2023

Indeed if I use --wrong-parameter=6 the message is more clear:

ctapipe-process: error: unrecognized arguments: --wrong-parameter=6

So it's only in the case where the parameter is not set.

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

No branches or pull requests

1 participant