mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
Add --all-features for CI, fix build with debug feature.
This commit is contained in:
parent
2b45011c9b
commit
2d26f02605
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