-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Rule not found by description when omitting filter
#3
Comments
Not a bug, just a quirk of the syntax because I'm not using a "real" arg parser. If you want to explicitly specify an action (
If you just want to toggle, you can omit everything after the rule description, since toggle is the default action:
I might try to improve the parser in the future, but for now I don't have much time to work on this. |
filter
filter
No problem. I just put in an Issue since it didn't seem to work as the readme suggested, so I wanted to let you know. Really like the script you've made since it isn't all that invasive. |
Thanks. I updated the README to clarify. Closing this for now. |
Example:
Does not work
php -q fwrule_toggle.php -d 'test rule' toggle
Result: no matching rules found
Works
php -q fwrule_toggle.php -d 'test rule' filter toggle
The text was updated successfully, but these errors were encountered: