patman: Refactor how the default subcommand works
authorSimon Glass <sjg@chromium.org>
Tue, 3 Nov 2020 20:54:10 +0000 (13:54 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 14 Nov 2020 22:23:41 +0000 (15:23 -0700)
commit4600767d294d892ce52cb0af3b24e324a3df4818
tree4f3ab492a89bfc98e568a196df9aa8ba91af1eb5
parent832bfad7451e2e7bd23c96edff2be050905ac3f6
patman: Refactor how the default subcommand works

At present patman tries to assume a default subcommand of 'send', to
maintain backwards compatibility. However it does not cope with
arguments added to the default command, so for example 'patman -t'
does not work.

Update the logic to handle this. Also update the CC command to use 'send'
explicitly, since otherwise patman gets confused with the patch-filename
argument.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/func_test.py
tools/patman/gitutil.py
tools/patman/main.py