Add --deps for all commands beside config and help. Fix help.

Review URL: http://codereview.chromium.org/2384001

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@48508 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gclient.py b/gclient.py
index c3863d3..7246cde 100644
--- a/gclient.py
+++ b/gclient.py
@@ -802,6 +802,10 @@
 
 Mostly svn-specific. Simply runs 'svn cleanup' for each module.
 """
+  parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
+                    help="override deps for the specified (comma-separated) "
+                         "platform(s); 'all' will process all deps_os "
+                         "references")
   (options, args) = parser.parse_args(args)
   client = GClient.LoadCurrentConfig(options)
   if not client:
@@ -857,6 +861,10 @@
 
 def CMDexport(parser, args):
   """Wrapper for svn export for all managed directories."""
+  parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
+                    help="override deps for the specified (comma-separated) "
+                         "platform(s); 'all' will process all deps_os "
+                         "references")
   (options, args) = parser.parse_args(args)
   if len(args) != 1:
     raise gclient_utils.Error("Need directory name")
@@ -884,6 +892,10 @@
 resulting patch is printed to stdout and can be applied to a freshly
 checked out tree via 'patch -p0 < patchfile'.
 """
+  parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
+                    help="override deps for the specified (comma-separated) "
+                         "platform(s); 'all' will process all deps_os "
+                         "references")
   (options, args) = parser.parse_args(args)
   client = GClient.LoadCurrentConfig(options)
   if not client:
@@ -898,8 +910,9 @@
 def CMDstatus(parser, args):
   """Show modification status for every dependencies."""
   parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
-                    help="sync deps for the specified (comma-separated) "
-                         "platform(s); 'all' will sync all platforms")
+                    help="override deps for the specified (comma-separated) "
+                         "platform(s); 'all' will process all deps_os "
+                         "references")
   (options, args) = parser.parse_args(args)
   client = GClient.LoadCurrentConfig(options)
   if not client:
@@ -942,8 +955,9 @@
   parser.add_option("--reset", action="store_true",
                     help="resets any local changes before updating (git only)")
   parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
-                    help="sync deps for the specified (comma-separated) "
-                         "platform(s); 'all' will sync all platforms")
+                    help="override deps for the specified (comma-separated) "
+                         "platform(s); 'all' will process all deps_os "
+                         "references")
   parser.add_option("--manually_grab_svn_rev", action="store_true",
                     help="Skip svn up whenever possible by requesting "
                          "actual HEAD revision from the repository")
@@ -990,6 +1004,10 @@
 
 def CMDdiff(parser, args):
   """Displays local diff for every dependencies."""
+  parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
+                    help="override deps for the specified (comma-separated) "
+                         "platform(s); 'all' will process all deps_os "
+                         "references")
   (options, args) = parser.parse_args(args)
   client = GClient.LoadCurrentConfig(options)
   if not client:
@@ -1004,8 +1022,9 @@
 def CMDrevert(parser, args):
   """Revert all modifications in every dependencies."""
   parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
-                    help="sync deps for the specified (comma-separated) "
-                         "platform(s); 'all' will sync all platforms")
+                    help="override deps for the specified (comma-separated) "
+                         "platform(s); 'all' will process all deps_os "
+                         "references")
   parser.add_option("--nohooks", action="store_true",
                     help="don't run hooks after the revert is complete")
   (options, args) = parser.parse_args(args)
@@ -1020,8 +1039,9 @@
 def CMDrunhooks(parser, args):
   """Runs hooks for files that have been modified in the local working copy."""
   parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
-                    help="sync deps for the specified (comma-separated) "
-                         "platform(s); 'all' will sync all platforms")
+                    help="override deps for the specified (comma-separated) "
+                         "platform(s); 'all' will process all deps_os "
+                         "references")
   parser.add_option("--force", action="store_true", default=True,
                     help="Deprecated. No effect.")
   (options, args) = parser.parse_args(args)
@@ -1039,12 +1059,15 @@
 
 def CMDrevinfo(parser, args):
   """Outputs details for every dependencies."""
+  parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
+                    help="override deps for the specified (comma-separated) "
+                         "platform(s); 'all' will process all deps_os "
+                         "references")
   parser.add_option("--snapshot", action="store_true",
                     help="create a snapshot file of the current "
                          "version of all repositories")
   (options, args) = parser.parse_args(args)
   client = GClient.LoadCurrentConfig(options)
-  options.deps_os = None
   if not client:
     raise gclient_utils.Error("client not configured; see 'gclient config'")
   client.PrintRevInfo()