Skip to content

Commit f508d4b

Browse files
committed
change external interface to take parsed Opts
1 parent d630e13 commit f508d4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ pub enum RunError {
271271
RunDeploy(#[from] RunDeployError),
272272
}
273273

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

0 commit comments

Comments
 (0)