Move this code into a separate cmdline module, as is done with the other tools.
Use the same HAS_TESTS check as buildman Signed-off-by: Simon Glass <s...@chromium.org> --- tools/patman/__main__.py | 116 +----------------------------- tools/patman/cmdline.py | 147 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+), 113 deletions(-) create mode 100644 tools/patman/cmdline.py Applied to u-boot-dm, thanks!