Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow option bundling, e.g.
-c -D
can be written as -cD
+ add --default-directory as an alias for -D + allow the user agent to be defined via $WAX_USER_AGENT
- Loading branch information
1 parent
532083c
commit 29cf0a7
Showing
7 changed files
with
136 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use FindBin qw($Bin); | ||
use lib "$Bin/lib"; | ||
|
||
use Test::App::Wax qw(@DEFAULT @URL wax_is); | ||
use Test::More tests => 2; | ||
|
||
wax_is( | ||
"wax -cD cmd --foo $URL[0]", | ||
"cmd --foo $DEFAULT[0]" | ||
); | ||
|
||
wax_is( | ||
"wax -Dc cmd --foo $URL[0]", | ||
"cmd --foo $DEFAULT[0]" | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use FindBin qw($Bin); | ||
use lib "$Bin/lib"; | ||
|
||
use Test::App::Wax qw(@DEFAULT @URL wax_is); | ||
use Test::More tests => 4; | ||
|
||
wax_is( | ||
"wax --cache --default-directory cmd --foo $URL[0]", | ||
"cmd --foo $DEFAULT[0]" | ||
); | ||
|
||
wax_is( | ||
"wax --cache -D cmd --foo $URL[0]", | ||
"cmd --foo $DEFAULT[0]" | ||
); | ||
|
||
wax_is( | ||
"wax -c --default-directory cmd --foo $URL[0]", | ||
"cmd --foo $DEFAULT[0]" | ||
); | ||
|
||
wax_is( | ||
"wax -c -D cmd --foo $URL[0]", | ||
"cmd --foo $DEFAULT[0]" | ||
); |
Oops, something went wrong.