It's convenient to be able to scroll up in `patman -H`.
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
from argparse import ArgumentParser
import os
import re
+import shutil
import sys
import traceback
import unittest
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])),