Index: build/android/process_resources.py |
diff --git a/build/android/process_resources.py b/build/android/process_resources.py |
index 541fb56063ed8fd523cfd8e9b6786a79f8140b2c..a39ac1a8393ab13c75b800abd7e42a68426dc741 100755 |
--- a/build/android/process_resources.py |
+++ b/build/android/process_resources.py |
@@ -45,9 +45,7 @@ def ParseArgs(): |
# Check that required options have been provided. |
required_options = ('android_sdk', 'android_sdk_tools', 'R_dir', 'res_dirs', |
'crunch_input_dir', 'crunch_output_dir') |
- for option_name in required_options: |
- if not getattr(options, option_name): |
- parser.error('--%s is required' % option_name.replace('_', '-')) |
+ build_utils.CheckOptions(options, parser, required=required_options) |
return options |