system-installer: improve options handling 38/10738/1 accepted/tizen_ivi_panda tizen tizen_ivi_panda accepted/tizen/ivi/panda/20140403.014107 submit/tizen_ivi_panda/20140403.012117
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 9 Oct 2013 14:45:27 +0000 (17:45 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 10 Oct 2013 08:43:07 +0000 (11:43 +0300)
commitcbd6b9b4928565e92a8eb7197f1f042e2dbae98b
tree71495b469952a7eb5966e07ad8580ce744cd4175
parent4c3985c2420ae795e86d885d41946124dd2110a2
system-installer: improve options handling

* Move options handling down, to where all the code starts.
* Make it a bit more general, this will make it easier adding more options
  later.
* Add -h option and implement help text.
* Print nice error message in an unsupported option is given, plus print help
  text. The error message will be prefixed with program name.
* Handle "--" separator too.

Change-Id: I5a337b99fce7cb93417341c35368948e872990a9
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
scripts/system-installer [changed mode: 0644->0755]