mirror of
https://github.com/aphrody-labs/cosmic-session.git
synced 2026-10-17 12:28:15 +00:00
feat: add version argument
This commit is contained in:
1 parent
3bdf11741a
commit
d02ced6297
1 file changed
+7
@@ -46,6 +46,13 @@ const ENVIRONMENT_NAME: &'static str = "COSMIC";
|
||||
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
async fn main() -> Result<()> {
|
||||
if let Some(arg) = env::args().nth(1)
|
||||
&& (arg == "--version" || arg == "-V")
|
||||
{
|
||||
println!("cosmic-session {}", env!("CARGO_PKG_VERSION"));
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
color_eyre::install().wrap_err("failed to install color_eyre error handler")?;
|
||||
|
||||
let trace = tracing_subscriber::registry();
|
||||
|
||||
Reference in new issue
Block a user