wpkg --modversion

Options Comments
--admindir Define the administration directory, where the database of the installed packages resides.
--debug Define a set of flags of things to print out for debug purposes.
--instdir Define the installation directory, where the data files are installed on the target.
--quiet Not used.
--root Define the installation root path.
--verbose Not used.

The --modversion command comes from pkg-config. It returns the version of a package using its .pc file. You may specify any number of packages on the command line. Each version is written on a new line.

wpkg --modversion wpkg

The wpkg-config support is particularly useful for the --libs and --cflags commands that will print C-like library flags and other command line options used with a C or C++ compiler. In most cases the --cflags command returns -I options (path to additional include directories.)