summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-07-26 09:28:58 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-07-26 09:30:04 +0200
commit678f7962d0e149411993419bc3c688c1e1cde58a (patch)
tree17f6b6b2b1ae8f4d52f451f9c38a1c25537621fd /main.c
parent305618f6c1a28bc035f5abbdfd78c10168fe3907 (diff)
downloadaports-cache-678f7962d0e149411993419bc3c688c1e1cde58a.tar.bz2
aports-cache-678f7962d0e149411993419bc3c688c1e1cde58a.tar.xz
add --stdout option
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 2b48d05..4ee7aa8 100644
--- a/main.c
+++ b/main.c
@@ -35,6 +35,7 @@ int main(int argc, char *argv[])
{"verbose", no_argument, 0, 'v' },
{"update", no_argument, 0, 'u' },
{"shell", required_argument, 0, 's' },
+ {"stdout", no_argument, 0, 0x0101},
{ 0, 0, 0, 0}
};
int i, c, verbose=0, check_only=0, force_update=0;
@@ -58,6 +59,9 @@ int main(int argc, char *argv[])
case 's':
shell_argv[0] = optarg;
break;
+ case 0x0101:
+ cachefile=NULL;
+ break;
case 'u':
force_update = 1;
break;