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

Quick example panics #4

Open
mauricelam opened this issue Jan 28, 2023 · 0 comments · May be fixed by #5
Open

Quick example panics #4

mauricelam opened this issue Jan 28, 2023 · 0 comments · May be fixed by #5

Comments

@mauricelam
Copy link

The quick example at the main docs.rs page panics when run.
I needed to add interface.config_debug to make it runnable.

thread 'main' panicked at '`debug` is not an id of an argument or a group.
Make sure you're using the name of the argument itself and not the name of short or long flags.', /Users/yukl/Desktop/btsnoop-extcap/extcap-rs/src/lib.rs:560:40
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
sidcha added a commit to goToMain/extcap-rs that referenced this issue Jun 29, 2024
The exmaple provided in src/lib.rs panics because the code attempts look
for debug args when the interface does not have one. Fix this issue by
guarding these calls with the bool self.ifc_debug which indactes the
presnesce of those options.

Fixes: tkeksa#4
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
@sidcha sidcha linked a pull request Jun 29, 2024 that will close this issue
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 a pull request may close this issue.

1 participant