Document UFW's delete, insert and prepend commands as mutually exclusive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ufw |
Fix Released
|
Low
|
Jamie Strandboge |
Bug Description
Hi,
From testing various ufw commands, I believe the delete, insert and prepend rule commands are mutually exclusive. These rule commands are currently documented on the man page as:
[delete] [insert NUM] [prepend]
Where I believe this should be:
[delete | insert NUM | prepend]
A minor distinction, but one related to a fix required to the community.
Please let me know if I've missed anything.
Thanks!
# ufw --version
ufw 0.36
# cat /etc/issue
Ubuntu 20.04.3 LTS \n \l
# ufw --dry-run delete insert 1 allow from any to any port 123 proto tcp
ERROR: Invalid syntax
# ufw --dry-run delete prepend allow from any to any port 123 proto tcp
ERROR: Invalid syntax
# ufw --dry-run insert 1 prepend allow from any to any port 123 proto tcp
ERROR: Invalid syntax
Sorry for just getting to this now. Yes, you're right. Thanks for the bug and patch!