generator: create a cmdliner implementation per-request

Signed-off-by: David Scott <dave.scott@citrix.com>