diff options
author | Tom Rini <trini@konsulko.com> | 2021-09-24 20:35:50 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-24 20:35:50 -0400 |
commit | bf0491f8d8c2f259b6b7356744b9e6e05be8f6f2 (patch) | |
tree | decd8c20bc02d9039ce2ea6952e4642a71bc8190 /tools/patman/main.py | |
parent | 7d1fcaea128ff689aea75deaf7f75d75d1b553d3 (diff) | |
parent | cc5afabc9d32933578536401114f91bbecff158b (diff) |
Merge branch '2021-09-24-assorted-updates' into next
- A few minor updates
Diffstat (limited to 'tools/patman/main.py')
-rwxr-xr-x | tools/patman/main.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tools/patman/main.py b/tools/patman/main.py index 04e37a59313..e5be28e3316 100755 --- a/tools/patman/main.py +++ b/tools/patman/main.py @@ -28,6 +28,7 @@ from patman import settings from patman import terminal from patman import test_util from patman import test_checkpatch +from patman import tools epilog = '''Create patches from commits in a branch, check them and email them as specified by tags you place in the commits. Use -n to do a dry run first.''' @@ -170,14 +171,9 @@ elif args.cmd == 'send': fd.close() elif args.full_help: - pager = os.getenv('PAGER') - if not pager: - pager = shutil.which('less') - if not pager: - pager = 'more' - fname = os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), - 'README') - command.Run(pager, fname) + tools.PrintFullHelp( + os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), 'README') + ) else: # If we are not processing tags, no need to warning about bad ones |