mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
c1998d577a
commit
19e3858c6b
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ use clap::Parser;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> anyhow::Result<()> {
|
async fn main() -> anyhow::Result<()> {
|
||||||
if std::env::args_os().any(|s| s == "-V" || s == "--version") {
|
if std::env::args_os().nth(1).is_some_and(|s| s == "-V" || s == "--version") {
|
||||||
println!(
|
println!(
|
||||||
"Ya {} ({} {})",
|
"Ya {} ({} {})",
|
||||||
env!("CARGO_PKG_VERSION"),
|
env!("CARGO_PKG_VERSION"),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue