From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1P9KkU-0002cQ-VZ for barebox@lists.infradead.org; Fri, 22 Oct 2010 16:45:49 +0000 From: Robert Schwebel Date: Fri, 22 Oct 2010 18:45:12 +0200 Message-Id: <1287765924-1856-21-git-send-email-r.schwebel@pengutronix.de> In-Reply-To: <1287765924-1856-1-git-send-email-r.schwebel@pengutronix.de> References: <1287765924-1856-1-git-send-email-r.schwebel@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 20/32] doc: add documentation for 'bmp' To: barebox@lists.infradead.org Signed-off-by: Robert Schwebel --- Documentation/commands.dox | 1 + commands/bmp.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Documentation/commands.dox b/Documentation/commands.dox index 5404483..da95e85 100644 --- a/Documentation/commands.dox +++ b/Documentation/commands.dox @@ -2,6 +2,7 @@ * @page command_reference Supported Shell Commands @li @subpage addpart_command +@li @subpage bmp_command @li @subpage cat_command @li @subpage cd_command @li @subpage cp_command diff --git a/commands/bmp.c b/commands/bmp.c index 6e17200..242965a 100644 --- a/commands/bmp.c +++ b/commands/bmp.c @@ -193,17 +193,17 @@ failed_memmap: return 1; } -static const __maybe_unused char cmd_bmp_help[] = -"Usage: bmp [OPTION]... FILE\n" -"show bmp image FILE.\n" -" -f framebuffer device (/dev/fb0)\n" -" -x x offset (default center)\n" -" -y y offset (default center)\n" -" -o render offscreen\n"; +BAREBOX_CMD_HELP_START(bmp) +BAREBOX_CMD_HELP_USAGE("bmp [OPTIONS] FILE") +BAREBOX_CMD_HELP_SHORT("Show the bitmap FILE on the framebuffer.") +BAREBOX_CMD_HELP_OPT ("-f ", "framebuffer device (/dev/fb0)") +BAREBOX_CMD_HELP_OPT ("-x ", "x offset (default center)") +BAREBOX_CMD_HELP_OPT ("-y ", "y offset (default center)") +BAREBOX_CMD_HELP_OPT ("-o", "render offscreen") +BAREBOX_CMD_HELP_END BAREBOX_CMD_START(bmp) .cmd = do_bmp, .usage = "show a bmp image", BAREBOX_CMD_HELP(cmd_bmp_help) BAREBOX_CMD_END - -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox