aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2014-07-31 01:02:43 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2014-07-31 01:02:43 +0800
commita5c6488608fb092dc7d245d6757b6c7111421ef9 (patch)
tree75d00e894336bf471f4f3c4955d70e9d88847359 /linaro_image_tools/media_create
parent3b9d6f345b9f28f2a908996bcf6cc6cc4ec924a6 (diff)
downloadlinaro-image-tools-a5c6488608fb092dc7d245d6757b6c7111421ef9.tar.gz
fix error when not specify --userdataimage option
when not specify the --userdataimage option, will get the help displayed and following error even with --userdata option specified: linaro-android-media-create: error: one of the arguments --userdataimage is required Change-Id: Ia5a406d868a024704caafdd1ce4fe501c9702eff Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'linaro_image_tools/media_create')
-rw-r--r--linaro_image_tools/media_create/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/linaro_image_tools/media_create/__init__.py b/linaro_image_tools/media_create/__init__.py
index 0e08dda..a7bf578 100644
--- a/linaro_image_tools/media_create/__init__.py
+++ b/linaro_image_tools/media_create/__init__.py
@@ -227,7 +227,7 @@ def get_android_args_parser():
#group for userdata partition content specification
group = parser.add_mutually_exclusive_group(required=True)
- parser.add_argument(
+ group.add_argument(
'--userdata', dest="userdata",
help=('The tarball containing the Android data paritition.'
'Like userdata.tar.bz2'))