Fri Jul 20 10:33:31 PDT 2007
- Previous message: [Slony1-commit] slony1-engine TODO
- Next message: [Slony1-commit] slony1-engine/src/slon slon.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/slonik
In directory main.slony.info:/tmp/cvs-serv18296/slonik
Modified Files:
slonik.c
Log Message:
Patch per Drew Hammond
- add support longopt options for --help, --version and add them to
help output for slon
Index: slonik.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/slonik/slonik.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** slonik.c 5 Jul 2007 18:19:04 -0000 1.79
--- slonik.c 20 Jul 2007 17:33:29 -0000 1.80
***************
*** 83,87 ****
int opt;
! while ((opt = getopt(argc, (char **)argv, "hv")) != EOF)
{
switch (opt)
--- 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)
- Previous message: [Slony1-commit] slony1-engine TODO
- Next message: [Slony1-commit] slony1-engine/src/slon slon.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list