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

Unrecognized arguments error when no device is found. #213

Closed
LennardKittner opened this issue Jun 20, 2023 · 1 comment
Closed

Unrecognized arguments error when no device is found. #213

LennardKittner opened this issue Jun 20, 2023 · 1 comment
Labels

Comments

@LennardKittner
Copy link
Contributor

Bug description

What happened

Running rivalcfg --battery-level with no supported device connected returns an unrecognized arguments error.

$ rivalcfg --battery-level
usage: rivalcfg [-h] [--list] [--version] [--no-save] [--update-udev] [--print-udev] [--print-debug]
rivalcfg: error: unrecognized arguments: --battery-level

What was expected

I would expect an error message saying that no supported device was found.

Step to reproduce

  • Is the bug always reproducible or is it "random"?

→ always reproducible

  1. Disconnect all device dongles.
  2. Run rivalcfg --battery-level

System information

RIVALCFG
========
Version: 4.9.0
udev rules installed: True
udev rules up to date: True
Installation path: /usr/lib/python3.11/site-packages/rivalcfg

OPERATING SYSTEM
================
OS: Linux
Platform: Linux-5.15.114-2-MANJARO-x86_64-with-glibc2.37
Version: #1 SMP PREEMPT Sun Jun 4 10:32:43 UTC 2023
Distribution issue: Manjaro Linux \r  (\n) (\l)

PYTHON
======
Python version: 3.11.3
HIDAPI version: 0.14.0

PLUGGED STEELSERIES DEVICES ENDPOINTS
=====================================

Resolving the Issue

I have already fixed the issue locally and will submit a pull request soon.

@flozz
Copy link
Owner

flozz commented Jul 4, 2023

Fixed by #214, it will be released in next rivalcfg version :)

@flozz flozz closed this as completed Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants