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

-c option doesn't work if wob.ini exists #98

Closed
7ff04da4aa6ac37197e249299066ac30 opened this issue Aug 1, 2022 · 1 comment
Closed

Comments

@7ff04da4aa6ac37197e249299066ac30

I don't know if this is intended behaviour, but I'd assume not, so here I am.

I have two instances of wob running: one for brightness and the other for volume. I like to have brightness represented horizontally and volume vertically, so I've been using #97 for this purpose.

For this to work, I have to supply wob with two configuration files. Initially, I thought that I could have a "default" configuration file, which would be the one stored in ~/.config/wob/wob.ini, and would simply have to reference another configuration file with the -c option if I needed wob to use another set of configurations.

This, however, is not the case. If wob.ini exists, passing the -c option and referencing a file results in the following message:

usage: wob [-c config]

If it does not exist, I can simply reference configuration files individually for each wob instance, which is what I've been doing, having wob-brightness.ini and wob-volume.ini.

This is no big issue, of course, but it took some time to figure out what was wrong. If possible, it would be better for the error message to be more precise about wob's requirements or to change how passing the -c option works alltogether.

@francma francma closed this as completed in de3851d Aug 1, 2022
@francma
Copy link
Owner

francma commented Aug 1, 2022

Thanks 👍

Should be working now.

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

No branches or pull requests

2 participants