[cli/engine/commands/shell] only take shell-specific flags if actually a shell