fn check_valid()

in components/support/nimbus-cli/src/main.rs [422:445]


    fn check_valid(&self) -> Result<()> {
        // Check validity of the OpenArgs.
        if let Some(open) = self.open_args() {
            if open.reset_app || !open.passthrough.is_empty() {
                const ERR: &str = "does not work with --reset-app or passthrough args";
                if open.pbcopy {
                    bail!(format!("{} {}", "--pbcopy", ERR));
                }
                if open.pbpaste {
                    bail!(format!("{} {}", "--pbpaste", ERR));
                }
                if open.output.is_some() {
                    bail!(format!("{} {}", "--output", ERR));
                }
            }
            if open.deeplink.is_some() {
                const ERR: &str = "does not work with --deeplink";
                if open.output.is_some() {
                    bail!(format!("{} {}", "--output", ERR));
                }
            }
        }
        Ok(())
    }