Files
containerd/cmd/ctr
Samuel Karp 72c741e0a8 ctr: preserve args after "-" in images export
urfave/cli/v3 breaks out of its flag parsing loop when it encounters a
"-" positional argument without appending the remaining arguments,
causing "ctr images export - <image>" to drop all image references and
flags following "-".

When <out> is "-", recover the un-truncated arguments from the parent
"images" command lineage and re-parse the tail starting at "-" with a
sentinel placeholder so trailing image references and flags are
preserved.

This workaround can be removed after the bug is fixed upstream:

* https://github.com/urfave/cli/issues/2418
* https://github.com/urfave/cli/pull/2419

Assisted-by: Antigravity
Signed-off-by: Samuel Karp <samuelkarp@google.com>
2026-09-23 16:51:47 -07:00
..
2026-09-10 01:14:31 +02:00
2026-09-10 01:14:31 +02:00