accept command line argument

publish now uses the first command line argument, if present,
as the deploy target. Defaults to 'public' if not supplied.
fix typo