OSDN Git Service

Fix error detection for invalid command line arguments.
authorRaphael Moll <ralf@android.com>
Wed, 19 May 2010 05:37:12 +0000 (07:37 +0200)
committerRaphael Moll <ralf@android.com>
Wed, 19 May 2010 05:49:03 +0000 (07:49 +0200)
commit1e8a0225f544baa63098badd68a25e69dfd966bc
tree083440ad751b1832fe3cc9dffe277ebaa5325b7e
parentfc58ae598819fac0fce2f47816dd2a92a4d5b4e0
Fix error detection for invalid command line arguments.

This fixes 2 edge cases:
- when an unknown extra parameter is given (it was simply
  ignored before)

  e.g.: "android update sdk foo" => foo is extra.

- when a 1-argument parameter is used and no argument is actually
  given but instead the next dash-parameter is found.

  e.g.: "android update sdk --filter (missing value) --somearg"

Change-Id: Idc34f61728411aceaf1cf33f070ac275b3798019
sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java