From 48ba5856eb47dca0abc4d24e7c4e3ce1fd2628f1 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 5 Sep 2014 19:00:11 -0600 Subject: buildman: Move full help code into the control module There is no good reason to keep this code separate. Move it into control.py so it is easier to test. Signed-off-by: Simon Glass --- tools/buildman/control.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/buildman/control.py') diff --git a/tools/buildman/control.py b/tools/buildman/control.py index 06c9229fba..408d9b126b 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -84,6 +84,14 @@ def DoBuildman(options, args): options: Command line options object args: Command line arguments (list of strings) """ + if options.full_help: + pager = os.getenv('PAGER') + if not pager: + pager = 'more' + fname = os.path.join(os.path.dirname(sys.argv[0]), 'README') + command.Run(pager, fname) + return 0 + gitutil.Setup() bsettings.Setup(options.config_file) -- cgit v1.2.3