xbps-rindex: added -d/--debug option.
This commit is contained in:
parent
189ef0da33
commit
40c3e048b0
2
NEWS
2
NEWS
@ -1,5 +1,7 @@
|
|||||||
xbps-0.42 (???):
|
xbps-0.42 (???):
|
||||||
|
|
||||||
|
* xbps-rindex(8): added -d/--debug option.
|
||||||
|
|
||||||
* utils: the -C/--config option now expects a path to a directory storing
|
* utils: the -C/--config option now expects a path to a directory storing
|
||||||
configuration files; if first character is not '/' it will be treated as
|
configuration files; if first character is not '/' it will be treated as
|
||||||
relative to rootdir.
|
relative to rootdir.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2012-2013 Juan Romero Pardines.
|
* Copyright (c) 2012-2014 Juan Romero Pardines.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -37,6 +37,7 @@ usage(bool fail)
|
|||||||
fprintf(stdout,
|
fprintf(stdout,
|
||||||
"Usage: xbps-rindex [OPTIONS] MODE ARGUMENTS\n\n"
|
"Usage: xbps-rindex [OPTIONS] MODE ARGUMENTS\n\n"
|
||||||
"OPTIONS\n"
|
"OPTIONS\n"
|
||||||
|
" -d --debug Debug mode shown to stderr\n"
|
||||||
" -f --force Force mode to overwrite entry in add mode\n"
|
" -f --force Force mode to overwrite entry in add mode\n"
|
||||||
" -h --help Show help usage\n"
|
" -h --help Show help usage\n"
|
||||||
" -v --verbose Verbose messages\n"
|
" -v --verbose Verbose messages\n"
|
||||||
@ -58,6 +59,7 @@ main(int argc, char **argv)
|
|||||||
struct option longopts[] = {
|
struct option longopts[] = {
|
||||||
{ "add", no_argument, NULL, 'a' },
|
{ "add", no_argument, NULL, 'a' },
|
||||||
{ "clean", no_argument, NULL, 'c' },
|
{ "clean", no_argument, NULL, 'c' },
|
||||||
|
{ "debug", no_argument, NULL, 'd' },
|
||||||
{ "force", no_argument, NULL, 'f' },
|
{ "force", no_argument, NULL, 'f' },
|
||||||
{ "help", no_argument, NULL, 'h' },
|
{ "help", no_argument, NULL, 'h' },
|
||||||
{ "remove-obsoletes", no_argument, NULL, 'r' },
|
{ "remove-obsoletes", no_argument, NULL, 'r' },
|
||||||
@ -89,6 +91,9 @@ main(int argc, char **argv)
|
|||||||
case 'c':
|
case 'c':
|
||||||
clean_mode = true;
|
clean_mode = true;
|
||||||
break;
|
break;
|
||||||
|
case 'd':
|
||||||
|
flags |= XBPS_FLAG_DEBUG;
|
||||||
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
force = true;
|
force = true;
|
||||||
break;
|
break;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.Dd September 30, 2014
|
.Dd November 6, 2014
|
||||||
.Dt XBPS-RINDEX 8
|
.Dt XBPS-RINDEX 8
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm xbps-rindex
|
.Nm xbps-rindex
|
||||||
@ -14,7 +14,9 @@ The
|
|||||||
utility creates, updates and removes obsolete binary packages stored
|
utility creates, updates and removes obsolete binary packages stored
|
||||||
in local repositories.
|
in local repositories.
|
||||||
.Sh OPTIONS
|
.Sh OPTIONS
|
||||||
.Bl -tag -width -x
|
.Bl -tag -width November 6-x
|
||||||
|
.It Fl d, Fl -debug
|
||||||
|
Enables extra debugging shown to stderr.
|
||||||
.It Fl f -force
|
.It Fl f -force
|
||||||
Forcefully register binary package into the local repository, overwriting existing entry.
|
Forcefully register binary package into the local repository, overwriting existing entry.
|
||||||
This flag is only useful with the
|
This flag is only useful with the
|
||||||
|
Loading…
Reference in New Issue
Block a user