mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
gi-inspect-repository: Change --version argument to --typelib-version
`--version` is conventionally used to find the version of the program itself. While that’s not currently implemented in `gi-inspect-repository`, let’s not box ourselves into a corner. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
268871426a
commit
8248382d8b
@ -90,3 +90,6 @@ your code if integer type warnings are enabled.
|
||||
| `g-ir-generate` | `gi-decompile-typelib` |
|
||||
| `g-ir-inspect` | `gi-inspect-typelib` |
|
||||
|
||||
In addition, the `--version` option for `g-ir-inspect` has been renamed to
|
||||
`--typelib-version` in `gi-inspect-typelib`.
|
||||
|
||||
|
@ -68,7 +68,7 @@ main (gint argc,
|
||||
GStrv namespaces = NULL;
|
||||
const gchar *namespace = NULL;
|
||||
const GOptionEntry options[] = {
|
||||
{ "version", 0, 0, G_OPTION_ARG_STRING, &version, "Typelib version to inspect", "VERSION" },
|
||||
{ "typelib-version", 0, 0, G_OPTION_ARG_STRING, &version, "Typelib version to inspect", "VERSION" },
|
||||
{ "print-shlibs", 0, 0, G_OPTION_ARG_NONE, &opt_shlibs, "List the shared libraries the typelib requires", NULL },
|
||||
{ "print-typelibs", 0, 0, G_OPTION_ARG_NONE, &opt_typelibs, "List other typelibs the inspected typelib requires", NULL },
|
||||
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &namespaces, "The typelib to inspect", "NAMESPACE" },
|
||||
|
Loading…
Reference in New Issue
Block a user