xbps-dgraph: -m --metadata was documented but not enabled in getopt (oops).

This commit is contained in:
Juan RP 2015-01-11 08:58:02 +01:00
parent 7dea05f507
commit 9aaff4e2d0
2 changed files with 6 additions and 2 deletions

3
NEWS
View File

@ -1,5 +1,8 @@
xbps-0.44 (???): xbps-0.44 (???):
* xbps-dgraph(8): the -m/--metadata option (default mode) is now properly
accepted. Regression introduced in 0.42.
* xbps-{install,query}: the --repository argument now works with relative * xbps-{install,query}: the --repository argument now works with relative
paths for local repositories. The relative path is always converted to paths for local repositories. The relative path is always converted to
absolute. absolute.

View File

@ -1,5 +1,5 @@
/*- /*-
* Copyright (c) 2010-2014 Juan Romero Pardines. * Copyright (c) 2010-2015 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
@ -501,7 +501,7 @@ create_dot_graph(struct xbps_handle *xhp,
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
const char *shortopts = "C:c:dfghMRr:V"; const char *shortopts = "C:c:dfghMmRr:V";
const struct option longopts[] = { const struct option longopts[] = {
{ "config", required_argument, NULL, 'C' }, { "config", required_argument, NULL, 'C' },
{ "graph-config", required_argument, NULL, 'c' }, { "graph-config", required_argument, NULL, 'c' },
@ -510,6 +510,7 @@ main(int argc, char **argv)
{ "gen-config", no_argument, NULL, 'g' }, { "gen-config", no_argument, NULL, 'g' },
{ "help", no_argument, NULL, 'h' }, { "help", no_argument, NULL, 'h' },
{ "memory-sync", no_argument, NULL, 'M' }, { "memory-sync", no_argument, NULL, 'M' },
{ "metadata", no_argument, NULL, 'm' },
{ "repository", no_argument, NULL, 'R' }, { "repository", no_argument, NULL, 'R' },
{ "rootdir", required_argument, NULL, 'r' }, { "rootdir", required_argument, NULL, 'r' },
{ "version", no_argument, NULL, 'V' }, { "version", no_argument, NULL, 'V' },