refactor: Use 'AppError' for propagation to clap

pull/1/head
sgoudham 2 years ago
parent c632965a2a
commit ce4138712e
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -16,7 +16,7 @@ fn main() {
.version(crate_version!()) .version(crate_version!())
.author(crate_authors!()) .author(crate_authors!())
.about(crate_description!()) .about(crate_description!())
.long_about(None) .long_about("")
.arg( .arg(
Arg::new("branch") Arg::new("branch")
.help("The branch to view git repository on") .help("The branch to view git repository on")
@ -61,7 +61,7 @@ fn main() {
matches.is_present("print"), matches.is_present("print"),
); );
if let Err(err) = git_view.open_upstream_repository() { if let Err(app_error) = git_view.open_upstream_repository() {
clap_panic!(err); clap_panic!(app_error.print());
} }
} }

Loading…
Cancel
Save