Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: third_party/typ/typ/arg_parser.py

Issue 3017623002: Roll typ to the latest version
Patch Set: Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/typ/setup.py ('k') | third_party/typ/typ/runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/typ/typ/arg_parser.py
diff --git a/third_party/typ/typ/arg_parser.py b/third_party/typ/typ/arg_parser.py
index 31d575d879e4c31e6a432379ac1db712e4d9efdc..707adab0f6cd2916205cad7bf9f5ae0a705bdd51 100644
--- a/third_party/typ/typ/arg_parser.py
+++ b/third_party/typ/typ/arg_parser.py
@@ -85,7 +85,7 @@ class ArgumentParser(argparse.ArgumentParser):
default=[],
help=('Directories to include when running and '
'reporting coverage (defaults to '
- '--top-level-dir plus --path)'))
+ '--top-level-dirs plus --path)'))
self.add_argument('--coverage-omit', action='append',
default=[],
help=('Globs to omit when reporting coverage '
@@ -171,7 +171,9 @@ class ArgumentParser(argparse.ArgumentParser):
self.add_argument('-P', '--path', action='append', default=[],
help=('Adds dir to sys.path (can specify '
'multiple times).'))
- self.add_argument('--top-level-dir', default=None,
+ self.add_argument('--top-level-dir', action='store', default=None,
+ help=argparse.SUPPRESS)
+ self.add_argument('--top-level-dirs', action='append', default=[],
help=('Sets the top directory of project '
'(used when running subdirs).'))
« no previous file with comments | « third_party/typ/setup.py ('k') | third_party/typ/typ/runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698