#3491·headscale

[Bug] Approve routes should not accept any positional args given that routes are accepted as flags

Author: dharsanbCreated Sep 24, 2026Updated Sep 25, 2026
Labelsbug

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

This was partly my mistake not using help before typing the command but when using headscale accept-routes command, identifier is given with flag -i but I assumed routes will be an arg given that it's a command about routes. When entering routes with command like headscale nodes approve-routes -i 2 "0.0.0.0/0,::/0,xxx.xxx.xxx.xxx/32,xxxx:xxxx:xxxx:xxxx::/64", it should give out an error instead of giving Node updated as output.

Expected Behavior

Expected output is headscale nodes approve-routes does not allow arguments

Steps To Reproduce

The above example should work.

Environment

markdown
- OS: Debian 13
- Headscale version: 0.29.4

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Debug information

Not needed in this case.