summaryrefslogtreecommitdiff
path: root/common/tools/mksimage/mksimage.c
diff options
context:
space:
mode:
authorJérémy Dufour2012-11-07 15:14:27 +0100
committerJérémy Dufour2012-11-21 17:09:53 +0100
commitd3824d9a45237142b2fe86436ed92403d18bdf49 (patch)
tree4e156caf48e0c381b0ff1a15d4a50a0c7c91710e /common/tools/mksimage/mksimage.c
parentf99a0279f23e6a5bae2d0045b2c4681bdac2bb62 (diff)
common/tools/mksimage: describe all options in help message, refs #3452
Diffstat (limited to 'common/tools/mksimage/mksimage.c')
-rw-r--r--common/tools/mksimage/mksimage.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/common/tools/mksimage/mksimage.c b/common/tools/mksimage/mksimage.c
index 9d83b4a54f..e775000c7d 100644
--- a/common/tools/mksimage/mksimage.c
+++ b/common/tools/mksimage/mksimage.c
@@ -49,7 +49,15 @@ spidcom_image_desc_t image = {
static void print_usage(const char *cmd)
{
- printf("%s : \n", cmd);
+ printf("Usage: %s [options]\n", cmd);
+ printf("Generate a Spidcom header of a Linux image\n\n");
+ printf(" -s, --size=S\t\t set size of the image to S bytes\n");
+ printf(" -v, --ver=V\t\t set version of the image to V\n");
+ printf(" -d, --desc=D\t\t set the description of the image to D\n");
+ printf(" -m, --md5=M\t\t set the MD5 sum of the image to M\n");
+ printf(" -r, --plc-ram=R\t set the amount of RAM given to PLC to R "
+ "bytes\n");
+ printf(" -h, --help\t\t print this message and exit\n");
}
int main(int argc, char **argv)