From 65ed6651419c0baed7cb8a4c6114aa202322be8d Mon Sep 17 00:00:00 2001 From: Benjy Weinberger Date: Wed, 10 Apr 2019 07:47:28 +0300 Subject: [PATCH] Set the fromfile option arg's default to True (#7513) There's no reason not to support this for all options. If this goes smoothly a future change will deprecate the fromfile arg. --- .../pants/contrib/go/tasks/go_buildgen.py | 2 +- src/python/pants/build_graph/target.py | 2 +- src/python/pants/help/help_formatter.py | 6 ++--- src/python/pants/help/help_info_extracter.py | 4 +--- src/python/pants/option/global_options.py | 10 ++++----- src/python/pants/option/parser.py | 13 ++++++----- .../pants_test/help/test_help_formatter.py | 6 +---- .../help/test_help_info_extracter.py | 12 ---------- .../python/pants_test/option/test_options.py | 22 +++++++++---------- 9 files changed, 29 insertions(+), 48 deletions(-) diff --git a/contrib/go/src/python/pants/contrib/go/tasks/go_buildgen.py b/contrib/go/src/python/pants/contrib/go/tasks/go_buildgen.py index 9ce9c083536..d9f89579d33 100644 --- a/contrib/go/src/python/pants/contrib/go/tasks/go_buildgen.py +++ b/contrib/go/src/python/pants/contrib/go/tasks/go_buildgen.py @@ -169,7 +169,7 @@ def register_options(cls, register): 'memory, (re-)generate them on disk using the installed Go BUILD file template.') # TODO(John Sirois): Add docs for the template parameters. - register('--template', metavar='