[PATCH radeontool 4/5] Add --help option to show usage description
Tormod Volden
lists.tormod at gmail.com
Fri Dec 2 13:32:05 PST 2011
From: Tormod Volden <debian.tormod at gmail.com>
Signed-off-by: Tormod Volden <debian.tormod at gmail.com>
---
radeontool.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/radeontool.c b/radeontool.c
index f9710fc..08b1749 100644
--- a/radeontool.c
+++ b/radeontool.c
@@ -155,6 +155,7 @@ static void usage(void)
& RADEON_LVDS_ON) ? "on" : "off";
}
fprintf(stderr,"usage: radeontool [options] [command]\n");
+ fprintf(stderr," --help - show this usage text\n");
fprintf(stderr," --debug - show a little debug info\n");
fprintf(stderr," --skip=1 - use the second radeon card\n");
fprintf(stderr," dac [on|off] - power down the external "
@@ -2976,6 +2977,8 @@ int main(int argc,char *argv[])
} else if (strncmp(argv[1],"--skip=", 7) == 0) {
skip=atoi(argv[1]+7);
argv++; argc--;
+ } else if(strcmp(argv[1], "--help") == 0) {
+ usage();
} else {
break;
}
--
1.7.5.4
More information about the xorg-driver-ati
mailing list