Minor bug fix.
Previous will give 'Invalid action' message if user doesn't provide the --action option