Skip to content

Commit df36d0e

Browse files
committed
style: rename opts -> args
1 parent 1488513 commit df36d0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ async fn main() {
66
use tracing::{error, info};
77

88
// Parse command-line arguments.
9-
let opts = crate::args::Args::parse();
9+
let args = crate::args::Args::parse();
1010

1111
// If user is requesting completions, return them and exit.
12-
if let Some(shell) = opts.completions {
12+
if let Some(shell) = args.completions {
1313
clap_complete::generate(
1414
shell,
1515
&mut crate::args::Args::command(),
@@ -21,9 +21,9 @@ async fn main() {
2121
}
2222

2323
// Setup tracing.
24-
let _log_guard = toolbox::tracing::setup_tracing("rust-template", opts.logs.as_deref());
24+
let _log_guard = toolbox::tracing::setup_tracing("rust-template", args.logs.as_deref());
2525

26-
// Setup Continuum standard panic handling.
26+
// Setup standard panic handling.
2727
let default_panic = std::panic::take_hook();
2828
std::panic::set_hook(Box::new(move |panic_info| {
2929
error!(?panic_info, "Application panic");

0 commit comments

Comments
 (0)