diff options
Diffstat (limited to 'mling/src')
| -rw-r--r-- | mling/src/cli.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mling/src/cli.rs b/mling/src/cli.rs index 6a4c7d8..6dc7b9e 100644 --- a/mling/src/cli.rs +++ b/mling/src/cli.rs @@ -75,16 +75,14 @@ pub fn run() { }); // Manifest Path Check - program.with_hook(ProgramHook::empty().on_post_dispatch(|c| match c { - // Skip completion (bypass completion) - ThisProgram::CompletionContext => {} - _ => { + if !program.is_completing() { + program.with_hook(ProgramHook::empty().on_post_dispatch(|_| { let p = ThisProgram::this(); p.modify_res(|manifest_path: &mut ResManifestPath| { manifest_path.resolved = Some(resolve_manifest_path(manifest_path.raw.clone())); }); - } - })); + })); + } // Execute let quiet = program.stdout_setting.quiet; |
