Validate arguments to publish command

Return an error if publish is given any non-switch arguments, eg if
you mistype 'publish -f foo' as 'publish foo'.