factory_setup: Detect incorrect usage in script syntax.

When invalid params are provided (ex, "-- firmware PATH" instead of
"--firmware PATH"), scripts should detect and abort.

TEST=./make_factory_package --factory IMAGE --release IMAGE \
     --hwid none -- firmware PATH  # See usage screen and die as error.

Change-Id: I821adc1ab29db3b533403fdb64a0fab1725cc731
Reviewed-on: https://gerrit.chromium.org/gerrit/34972
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Jon Salz <jsalz@chromium.org>
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
2 files changed
tree: 2a57a2ae9dd3fb0830f5e3e64b720eeff8855c03
  1. .gitignore
  3. cros_bundle/
  4. factory_setup/