Skip to content

Fix rlist argument check

schnapps rlist is the same as schnapps list in that it takes no mandatory arguments by default, and optional arguments for changing the listing output format (https://gitlab.nic.cz/turris/schnapps/-/blob/master/schnapps.sh#L86-94). However, recent changes in 5991c096 adjusted the argument check for rlist to only work if exactly 1 arg is provided.

This MR adopts the same argument check for list, erroring if more than 1 argument is provided, allowing schnapps rlist to work without arguments.

Merge request reports