diff options
author | Eric Wong <e@80x24.org> | 2021-02-23 04:01:14 -0600 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-23 23:04:11 +0000 |
commit | 238422ea83adbe93145bbd18455ffffb84b53124 (patch) | |
tree | 6cba5b5c80d9afba95fecfb959f401440c1ec316 /t/lei.t | |
parent | 56b3493c79087979f10f5a3cae7deedaf4ec9fa3 (diff) | |
download | public-inbox-238422ea83adbe93145bbd18455ffffb84b53124.tar.gz |
We'll also support "-C" at the end of most commands to give users a little more flexibility when building command-lines. This conflicts with "lei daemon-kill -CHLD", so that's special-cased since "-C" makes no sense with daemon-kill, anyways. Unlike "git show", the to-be-implemented "lei show" will diverge and enable "--find-copies[=<n>]" by default, so "-C[<n>]" won't be necessary.
Diffstat (limited to 't/lei.t')
-rw-r--r-- | t/lei.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -129,6 +129,10 @@ my $test_completion = sub { }; my $test_fail = sub { + lei('q', 'whatever', '-C', '/dev/null'); + is($? >> 8, 1, 'chdir at end fails to /dev/null'); + lei('-C', '/dev/null', 'q', 'whatever'); + is($? >> 8, 1, 'chdir at beginning fails to /dev/null'); SKIP: { skip 'no curl', 3 unless which('curl'); lei(qw(q --only http://127.0.0.1:99999/bogus/ t:m)); |