Skip to content

cps-config --help Examples don't work #124

@ashley-b

Description

@ashley-b

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions