Skip to content

Commit 8a73d47

Browse files
committed
Add command metadata
1 parent 7c40dde commit 8a73d47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use clap::Parser;
22

33
#[derive(Parser, Debug)]
4-
#[command(author, version, about, long_about = None)]
4+
#[command(author = "Daniel Leech", version = "0.3.0", about = "Step-debugging TUI for PHP\'s Xdebug", long_about = None)]
55
struct Args {
66
#[arg(last = true)]
77
pub php_script: Option<Vec<String>>,

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use tokio::sync::mpsc;
2323

2424
#[tokio::main]
2525
async fn main() -> Result<(), anyhow::Error> {
26+
let config = load_config();
2627
let stdout = io::stdout();
2728
let backend = CrosstermBackend::new(stdout);
2829
let mut terminal: Terminal<CrosstermBackend<io::Stdout>> = Terminal::new(backend)?;
@@ -33,7 +34,6 @@ async fn main() -> Result<(), anyhow::Error> {
3334

3435
// start input thread
3536
input::start(event_sender.clone());
36-
let config = load_config();
3737
if let Some(log_path) = &config.log_path {
3838
if let Err(err) = simple_logging::log_to_file(log_path, log::LevelFilter::Trace) {
3939
anyhow::bail!(err);

0 commit comments

Comments
 (0)