Skip to content

Commit

Permalink
change external interface to take parsed Opts
Browse files Browse the repository at this point in the history
  • Loading branch information
nrdxp committed Nov 5, 2021
1 parent d630e13 commit f508d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ pub enum RunError {
RunDeploy(#[from] RunDeployError),
}

pub async fn run(args: Option<&ArgMatches>) -> Result<(), RunError> {
pub async fn run(args: Option<Opts>) -> Result<(), RunError> {
let opts = match args {
Some(o) => <Opts as FromArgMatches>::from_arg_matches(o).unwrap_or_default(),
Some(o) => o,
None => Opts::parse(),
};

Expand Down

0 comments on commit f508d4b

Please sign in to comment.