commands/cli: Use template for helptext generation