aboutsummaryrefslogtreecommitdiffstats
path: root/gtk2/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2/main.c')
-rw-r--r--gtk2/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2/main.c b/gtk2/main.c
index dd4a46a177..1e0318d04b 100644
--- a/gtk2/main.c
+++ b/gtk2/main.c
@@ -1,6 +1,6 @@
/* main.c
*
- * $Id: main.c,v 1.5 2002/09/06 08:58:20 sahlberg Exp $
+ * $Id: main.c,v 1.6 2002/09/06 10:13:17 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -118,6 +118,7 @@
#include "image/clist_descend.xpm"
#include "../tap.h"
#include "gtk2-rpcstat.h"
+#include "gtk2-rpcprogs.h"
#ifdef WIN32
#include "capture-wpcap.h"
@@ -1722,8 +1723,12 @@ main(int argc, char *argv[])
fprintf(stderr, "ethereal: invalid \"-z rpc,rtt,<program>,<version>\" argument\n");
exit(1);
}
+ } else if(!strncmp(optarg,"rpc,programs",12)){
+ gtk2_rpcprogs_init();
} else {
- fprintf(stderr, "ethereal: invalid -z argument. Argument must be \"-z rpc,rtt,...\"\n");
+ fprintf(stderr, "ethereal: invalid -z argument. Argument must be one of:\n");
+ fprintf(stderr, " \"-z rpc,rtt,<program>,<version>\"\n");
+ fprintf(stderr, " \"-z rpc,programs\"\n");
exit(1);
}
} else {