diff --git a/dsc/src/args.rs b/dsc/src/args.rs index d8ae1f73..0a0d2a69 100644 --- a/dsc/src/args.rs +++ b/dsc/src/args.rs @@ -13,7 +13,7 @@ pub enum OutputFormat { } #[derive(Debug, Parser)] -#[clap(name = "dsc", version = "3.0.0-alpha.4", about = "Apply configuration or invoke specific DSC resources", long_about = None)] +#[clap(name = "dsc", version = env!("CARGO_PKG_VERSION"), about = "Apply configuration or invoke specific DSC resources", long_about = None)] pub struct Args { /// The subcommand to run #[clap(subcommand)] diff --git a/dsc/src/main.rs b/dsc/src/main.rs index 866730aa..8ff8c1c9 100644 --- a/dsc/src/main.rs +++ b/dsc/src/main.rs @@ -8,7 +8,7 @@ use clap_complete::generate; use std::io::{self, Read}; use std::process::exit; use sysinfo::{Process, ProcessExt, RefreshKind, System, SystemExt, get_current_pid, ProcessRefreshKind}; -use tracing::{Level, error, info, warn}; +use tracing::{Level, error, info, warn, debug}; #[cfg(debug_assertions)] use crossterm::event; @@ -45,6 +45,8 @@ fn main() { eprintln!("Unable to set global default subscriber"); } + debug!("Running dsc {}", env!("CARGO_PKG_VERSION")); + let input = if args.input.is_some() { args.input } else if args.input_file.is_some() {