utils: Add --help, --version and GNU argument parsing to all tools
They now all take named options (including the -- pseudo-option) for
future expansion, and fail with an error if given too many positional
parameters.
When libcapsule tools are bundled with a larger project, this should
make it easier to check which ones they are.
Signed-off-by:
Simon McVittie <smcv@collabora.com>
Showing
utils/tools.c
0 → 100644
utils/tools.h
0 → 100644
Please register or sign in to comment