cli: use -o ctf --output /output/path to quickly instantiate sink.ctf.fs
This should be easier for existing users of Babeltrace 1 which are used
to the --output-format (-o) and --output (-w) options. We had people
previously on the mailing list asking why
babeltrace my-trace -o ctf --output /output/path
was not working. The answer is that there was no CTF sink at the time,
but this usage is still correct and straightforward.
The code makes sure that, if something implies `-o text`, for example
--names, --fields, or --no-delta, then you cannot use this form because
--output could also apply to the implicit sink.pretty.text component. We
also make sure that --output exists if `-o ctf` exists (--output without
`-o ctf` applies to the implicit `-o text` as mentioned previously).
The run command equivalent of this command:
babeltrace my-trace -o ctf --output /output/path
as returned by --run-args, is:
babeltrace run --component source.ctf.fs --name source-ctf-fs
--key path --value my-trace --component sink.ctf.fs
--name sink-ctf-fs --key path --value /output/path
--component filter.utils.muxer --name muxer
--component filter.lttng-utils.debug-info
--name debug-info --connect source-ctf-fs:muxer
--connect muxer:debug-info
--connect debug-info:sink-ctf-fs
tests/cli/test_convert_args is updated because the preferred name of the
implicit source.ctf.fs component is changed: it used to be `ctf-fs`,
it's now `source-ctf-fs`, as the preferred implicit sink.ctf.fs
component's name is `sink-ctf-fs`. Also there are a few more tests to
verify the constraint and generated options mentioned in this message.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
This page took 0.025653 seconds and 5 git commands to generate.