When running cps-config --help, the output gives two examples
Examples:
Getting include directory flags for a set of dependencies.
$ cps-config --cflags-only-I fmt
-I/usr/include\n
Getting link directory flags for a set of dependencies.
$ cps-config --libs-only-L fmt
-L/usr/lib\n"s;
Running either one of the examples gives the following error
A subcommand is required
Run with --help for more information.
Running cps-config --help gives the following output
cps-config is a utility for querying and using installed libraries.
Usage: build/cps-config [OPTIONS] SUBCOMMAND
Options:
-h,--help Print this help message and exit
--version print cps-config version
Subcommands:
flags get flags used to compile and link a package
pkg-config pkg-config compatibility mode
Examples:
Getting include directory flags for a set of dependencies.
$ cps-config --cflags-only-I fmt
-I/usr/include\n
Getting link directory flags for a set of dependencies.
$ cps-config --libs-only-L fmt
-L/usr/lib\n"s;
Support:
Please report bugs to <https://github.com/cps-org/cps-config/issues>.
Looks like cps-config needs one of the subcommands flags or pkg-config before the options.
Example
cps-config flags --cflags-only-I tests/cps-files/lib/cps/minimal.cps
-I/usr/local/include -I/opt/include
When running
cps-config --help, the output gives two examplesRunning either one of the examples gives the following error
Running
cps-config --helpgives the following outputLooks like
cps-configneeds one of the subcommandsflagsorpkg-configbefore the options.Example
cps-config flags --cflags-only-I tests/cps-files/lib/cps/minimal.cps