[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] add a simple usage string to xenconsoled



# HG changeset patch
# User vh249@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 3f2751c6e72113d4a985aec3ed232a62bb4429df
# Parent  bc5e0fc79696086a29cd1eddd9363afa59c0b6fb
add a simple usage string to xenconsoled

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r bc5e0fc79696 -r 3f2751c6e721 tools/console/daemon/main.c
--- a/tools/console/daemon/main.c       Sat Sep 10 14:43:46 2005
+++ b/tools/console/daemon/main.c       Sat Sep 10 14:44:31 2005
@@ -30,6 +30,12 @@
 #include "utils.h"
 #include "io.h"
 
+void usage(char *prg)
+{
+       fprintf(stderr, 
+               "usage: %s [-h] [-V] [-v] [-i]\n", prg);
+}
+
 int main(int argc, char **argv)
 {
        const char *sopts = "hVvi";
@@ -49,7 +55,7 @@
        while ((ch = getopt_long(argc, argv, sopts, lopts, &opt_ind)) != -1) {
                switch (ch) {
                case 'h':
-                       //usage(argv[0]);
+                       usage(argv[0]);
                        exit(0);
                case 'V':
                        //version(argv[0]);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.