Chris Browne cbbrowne at lists.slony.info
Fri Jul 20 12:59:57 PDT 2007
Update of /home/cvsd/slony1/slony1-engine/src/slonik
In directory main.slony.info:/tmp/cvs-serv19988/slonik

Modified Files:
	slonik.c 
Log Message:
Don't use long options for --help/--version (sorry Drew), but make sure
-h and -v are generated by slon -h option.


Index: slonik.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/slonik/slonik.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** slonik.c	20 Jul 2007 17:33:29 -0000	1.80
--- slonik.c	20 Jul 2007 19:59:54 -0000	1.81
***************
*** 83,92 ****
  	int			opt;
  
!     static struct option longopts[] = {
!         { "help",       no_argument,    NULL,   "h"},
!         { "version",    no_argument,    NULL,   "v"}
!     };
! 
! 	while ((opt = getopt_long(argc, (char **)argv, "hv", longopts, NULL)) != -1)
  	{
  		switch (opt)
--- 83,87 ----
  	int			opt;
  
! 	while ((opt = getopt(argc, (char **)argv, "hv")) != EOF)
  	{
  		switch (opt)



More information about the Slony1-commit mailing list