Fix logic for some types of actions
Fix logic for some types of actions

douglas-larocca/argcomplete,neizod/argcomplete,landonb/argcomplete,lisongmin/argcomplete,kislyuk/argcomplete,douglas-larocca/argcomplete,neizod/argcomplete,landonb/argcomplete,kislyuk/argcomplete,lisongmin/argcomplete