Enable --cache-dir option for cros* commmands.
Also adds cache support to chromite commands being executed inside a
gclient chrome checkout.
CQ-DEPEND=CL:39819
BUG=None
TEST=unit tests.
Change-Id: I712fe0f882fac3558ff62ec0cca447b4722f9ff1
Reviewed-on: https://gerrit.chromium.org/gerrit/39739
Commit-Ready: Ryan Cui <rcui@chromium.org>
Reviewed-by: Ryan Cui <rcui@chromium.org>
Tested-by: Ryan Cui <rcui@chromium.org>
diff --git a/scripts/cros.py b/scripts/cros.py
index 05e289e..2d29061 100644
--- a/scripts/cros.py
+++ b/scripts/cros.py
@@ -8,7 +8,7 @@
def GetOptions(my_commands):
"""Returns the argparse to use for Cros."""
- parser = commandline.ArgumentParser()
+ parser = commandline.ArgumentParser(caching=True)
if not commands:
return parser