xbps-repo: add -c flag to set cachedir, update manpage.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128025616-fe43609n1rosmt6u
This commit is contained in:
Juan RP
2009-11-28 03:56:16 +01:00
parent f3d2481c31
commit 3855ee582a
2 changed files with 22 additions and 1 deletions

View File

@ -52,6 +52,7 @@ usage(void)
" show-deps\t<pkgname>\n"
" show-files\t<pkgname>\n"
" Options shared by all actions:\n"
" -c\t\t<cachedir>\n"
" -r\t\t<rootdir>\n"
" -V\t\tPrints xbps release version\n"
"\n"
@ -74,8 +75,11 @@ main(int argc, char **argv)
char *root;
int c, rv = 0;
while ((c = getopt(argc, argv, "Vr:")) != -1) {
while ((c = getopt(argc, argv, "Vcr:")) != -1) {
switch (c) {
case 'c':
xbps_set_cachedir(optarg);
break;
case 'r':
/* To specify the root directory */
root = optarg;