Mon Oct 18 16:11:39 PDT 2004
- Previous message: [Slony1-commit] By wieck: Added switch -v to slonik command to report version number and
- Next message: [Slony1-commit] By wieck: Added comment about -v switch Jan
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Added -v option to slon to show version number and exit.
Jan
Tags:
----
REL_1_0_STABLE
Modified Files:
--------------
slony1-engine/src/slon:
slon.c (r1.27.2.2 -> r1.27.2.3)
-------------- next part --------------
Index: slon.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/slon.c,v
retrieving revision 1.27.2.2
retrieving revision 1.27.2.3
diff -Lsrc/slon/slon.c -Lsrc/slon/slon.c -u -w -r1.27.2.2 -r1.27.2.3
--- src/slon/slon.c
+++ src/slon/slon.c
@@ -72,7 +72,7 @@
extern char *optarg;
int group_size_set = 0;
- while ((c = getopt(argc, argv, "d:s:t:g:h")) != EOF)
+ while ((c = getopt(argc, argv, "d:s:t:g:hv")) != EOF)
{
switch(c)
{
@@ -122,6 +122,10 @@
case 'h': errors++;
break;
+ case 'v': printf("slon version %s\n", SLONY_I_VERSION_STRING);
+ exit(0);
+ break;
+
default: fprintf(stderr, "unknown option '%c'\n", c);
errors++;
break;
- Previous message: [Slony1-commit] By wieck: Added switch -v to slonik command to report version number and
- Next message: [Slony1-commit] By wieck: Added comment about -v switch Jan
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list