mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-30 12:07:46 +00:00
feat: add version flag
This commit is contained in:
parent
1de952b26a
commit
93a88b35c3
4 changed files with 4 additions and 1 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -62,6 +62,7 @@ dependencies = [
|
|||
"atty",
|
||||
"bitflags",
|
||||
"indexmap",
|
||||
"lazy_static",
|
||||
"os_str_bytes",
|
||||
"strsim",
|
||||
"termcolor",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[dependencies]
|
||||
clap = "*"
|
||||
clap = { version = "*", features = ["cargo"] }
|
||||
indoc = "*"
|
||||
rand = "*"
|
||||
rayon = "*"
|
||||
|
|
1
front/Cargo.lock
generated
1
front/Cargo.lock
generated
|
@ -85,6 +85,7 @@ dependencies = [
|
|||
"atty",
|
||||
"bitflags",
|
||||
"indexmap",
|
||||
"lazy_static",
|
||||
"os_str_bytes",
|
||||
"strsim",
|
||||
"termcolor",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
pub fn parse(args: Vec<String>) -> clap::ArgMatches {
|
||||
clap::App::new("Alejandra")
|
||||
.about("The Uncompromising Nix Code Formatter.")
|
||||
.version(clap::crate_version!())
|
||||
.arg(
|
||||
clap::Arg::new("debug")
|
||||
.help("Enable debug mode.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue