print-id-metadata
Name
cave-print-id-metadata — Prints ID metadata.
Synopsis
cave print-id-metadata [ --raw-name key ] [ --human-name key ] [ --format format ] spec
DESCRIPTION
Prints ID metadata. No formatting is used, making the output suitable for parsing by scripts.
OPTIONS
Global Options
Global options, used by every subcommand.
- -h , --help
- display help message
Spec Options
Alter how the supplied spec is used.
- -a , --all (+a , --no-all)
- If the spec matches multiple IDs, display all matches.
- -b , --best (+b , --no-best)
- If the spec matches multiple IDs, select the best ID rather than giving an error.
Filters
Filter the output. Each filter may be specified more than once.
- --raw-name
- Show only keys with this raw name. If specified more than once, any name match is accepted.
- --human-name
- Show only keys with this human name. If specified more than once, any name match is accepted.
Display Options
Controls the output format.
- --format
- Select the output format. Special tokens recognised are %r for raw name, %h for human name, %v for value, %i for one space per subkey level, \n for newline, \t for tab. Default is '%i%i%r=%v\n'.
EXAMPLES
- cave print-id-metadata --format "%r\n" sys-apps/paludis::installed
- Print the raw names for all keys a given ID has.