From 1bae76770bc7e31044264004f5651e12e95b8982 Mon Sep 17 00:00:00 2001 From: Ruslan Mstoi Date: Mon, 1 Jun 2020 12:30:19 +0300 Subject: [PATCH] scripts: file2hex.py: add argument help text Convert the description comment at the top of the file to a documentation string. That string then maybe viewed with the --help argument. Also, rework a bit the documentation string. Signed-off-by: Ruslan Mstoi --- scripts/file2hex.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/file2hex.py b/scripts/file2hex.py index 613be1daa7b..3f21d8afaac 100755 --- a/scripts/file2hex.py +++ b/scripts/file2hex.py @@ -4,9 +4,13 @@ # # SPDX-License-Identifier: Apache-2.0 -# This converts a file to a list of hex characters which can then -# be included to a source file. -# Optionally, the output can be compressed if needed. + +"""Convert a file to a list of hex characters + +The list of hex characters can then be included to a source file. Optionally, +the output can be compressed. + +""" import argparse import codecs