mirror of
https://github.com/danbulant/nushell
synced 2026-05-24 12:35:59 +00:00
use clap::crate_version!()
- `crate_version()!` will pull version from Cargo.toml
This commit is contained in:
parent
b7c426e952
commit
b36bda24fa
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ use std::error::Error;
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn Error>> {
|
fn main() -> Result<(), Box<dyn Error>> {
|
||||||
let matches = App::new("nushell")
|
let matches = App::new("nushell")
|
||||||
.version("0.1.3")
|
.version(clap::crate_version!())
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("loglevel")
|
Arg::with_name("loglevel")
|
||||||
.short("l")
|
.short("l")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue