Use cmd.Name
when generating completion script
#288
Loading
cmd.Name
when generating completion script
#288