mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
Merge pull request #2352 from ldm0/all
Add --all-features for CI, fix build with debug feature.
This commit is contained in:
commit
0f92d5f2c3
2 changed files with 11 additions and 2 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -89,6 +89,12 @@ jobs:
|
|||
with:
|
||||
command: test
|
||||
args: --target ${{ matrix.target }} --features "wrap_help yaml regex unstable"
|
||||
- name: Check debug statement
|
||||
uses: actions-rs/cargo@v1
|
||||
if: matrix.features == 'all'
|
||||
with:
|
||||
command: check
|
||||
args: --target ${{ matrix.target }} --features "wrap_help yaml regex unstable debug"
|
||||
- name: Test release
|
||||
uses: actions-rs/cargo@v1
|
||||
if: matrix.features == 'release'
|
||||
|
|
|
@ -1349,7 +1349,10 @@ impl<'help, 'app> Parser<'help, 'app> {
|
|||
if let Some(overrider) = self.app.find(name) {
|
||||
let mut override_self = false;
|
||||
for overridee in &overrider.overrides {
|
||||
debug!("Parser::remove_overrides:iter:{:?} => {:?}", name, o);
|
||||
debug!(
|
||||
"Parser::remove_overrides:iter:{:?} => {:?}",
|
||||
name, overrider
|
||||
);
|
||||
if *overridee == overrider.id {
|
||||
override_self = true;
|
||||
} else {
|
||||
|
@ -1364,7 +1367,7 @@ impl<'help, 'app> Parser<'help, 'app> {
|
|||
{
|
||||
debug!(
|
||||
"Parser::remove_overrides:iter:{:?}:iter:{:?}: self override",
|
||||
name, o
|
||||
name, overrider
|
||||
);
|
||||
self_override.push(overrider.id.clone());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue