Mon Oct 18 16:09:56 PDT 2004
- Previous message: [Slony1-commit] By darcyb: Don't step past the end of the passed in conn_info
- Next message: [Slony1-commit] By wieck: Added -v option to slon to show version number and exit.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message: ----------- Added switch -v to slonik command to report version number and exit. Jan Tags: ---- REL_1_0_STABLE Modified Files: -------------- slony1-engine/src/slonik: slonik.c (r1.27.2.4 -> r1.27.2.5) -------------- next part -------------- Index: slonik.c =================================================================== RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slonik/slonik.c,v retrieving revision 1.27.2.4 retrieving revision 1.27.2.5 diff -Lsrc/slonik/slonik.c -Lsrc/slonik/slonik.c -u -w -r1.27.2.4 -r1.27.2.5 --- src/slonik/slonik.c +++ src/slonik/slonik.c @@ -70,13 +70,17 @@ extern int optind; int opt; - while ((opt = getopt(argc, (char **)argv, "h")) != EOF) + while ((opt = getopt(argc, (char **)argv, "hv")) != EOF) { switch(opt) { case 'h': parser_errors++; break; + case 'v': printf("slonik version %s\n", SLONY_I_VERSION_STRING); + exit(0); + break; + default: printf("unknown option '%c'\n", opt); parser_errors++; break;
- Previous message: [Slony1-commit] By darcyb: Don't step past the end of the passed in conn_info
- Next message: [Slony1-commit] By wieck: Added -v option to slon to show version number and exit.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list