pkgtools

morpheus pkg tools
git clone git://git.2f30.org/pkgtools.git
Log | Files | Refs | README | LICENSE

commit 74b0a043aecb958886297e75a973d12d3785da57
parent 5f7ddea6de62a3bc3ded20acac816d2fb1818bca
Author: sin <sin@2f30.org>
Date:   Tue Jun 17 15:30:59 +0100

Rename -O option to -o for infopkg

Diffstat:
infopkg.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/infopkg.c b/infopkg.c @@ -16,9 +16,9 @@ static void usage(void) { fprintf(stderr, VERSION " (c) 2014 morpheus engineers\n"); - fprintf(stderr, "usage: %s [-p prefix] [-O filename...]\n", argv0); + fprintf(stderr, "usage: %s [-p prefix] [-o filename...]\n", argv0); fprintf(stderr, " -p Set the installation prefix\n"); - fprintf(stderr, " -O Look for the packages that own the given filename(s)\n"); + fprintf(stderr, " -o Look for the packages that own the given filename(s)\n"); exit(1); } @@ -27,13 +27,13 @@ main(int argc, char *argv[]) { struct db *db; char *prefix = "/"; - int Oflag = 0; + int oflag = 0; int i; int r; ARGBEGIN { - case 'O': - Oflag = 1; + case 'o': + oflag = 1; break; case 'p': prefix = ARGF(); @@ -42,7 +42,7 @@ main(int argc, char *argv[]) usage(); } ARGEND; - if (Oflag == 0 || argc < 1) + if (oflag == 0 || argc < 1) usage(); db = dbinit(prefix);