The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;

use FindBin qw($Bin);
use lib "$Bin/lib";

use Test::App::Wax qw(@KEEP @URL wax_is);
use Test::More tests => 4;

wax_is(
    "wax -m cmd --foo $URL[0]",
    "cmd --foo $KEEP[0]"
);

wax_is(
    "wax --mirror cmd --foo $URL[0]",
    "cmd --foo $KEEP[0]"
);

wax_is(
    "wax -m cmd --foo $URL[0] -bar --baz $URL[1]",
    "cmd --foo $KEEP[0] -bar --baz $KEEP[1]"
);

wax_is(
    "wax --mirror cmd --foo $URL[0] -bar --baz $URL[1]",
    "cmd --foo $KEEP[0] -bar --baz $KEEP[1]"
);