Timo Sirainen wrote: > On 28.6.2012, at 9.43, Timo Sirainen wrote: > Perhaps for v2.2: > > doveadm auth test <user> [<pass>] > doveadm auth cache flush [<user>] > doveadm auth cache stats > > and for v2.1 a bit kludgy way: > > doveadm auth <user> [<pass>] > doveadm auth cache flush [<user>] > > so you couldn't test authentication against "cache" user, but that's probably > not a problem.
Hi there, wouldn't it be better to use a syntax similar to other doveadm commands, with labels for all arguments? doveadm auth test -u <user> -p [<pass>] doveadm auth cache flush -u [<user>] doveadm auth cache stats This will allow you to syntactically distinguish "commands" from "arguments". Otherwise you might run into the same "kludgy" syntax problem again, as soon as the number of subcommands changes. Regards Daniel -- https://plus.google.com/103021802792276734820