mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
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>