diff --git a/Cargo.toml b/Cargo.toml index 1353dfca5..5b5c73b3a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,13 @@ [package] name = "pixi" version = "0.0.2" +description = "A package management and workflow tool" edition = "2021" +authors = ["pixi contributors "] +homepage = "https://github.com/prefix-dev/pixi" +repository = "https://github.com/prefix-dev/pixi" +license = "BSD-3-Clause" +readme = "docs/README.md" [features] default = ["native-tls"] @@ -10,7 +16,7 @@ rustls-tls = ["reqwest/rustls-tls", "rattler_repodata_gateway/rustls-tls", "ratt [dependencies] anyhow = "1.0.70" -clap = { version = "4.2.4", default-features = false, features = ["derive", "usage", "wrap_help", "std"] } +clap = { version = "4.2.4", default-features = false, features = ["derive", "usage", "wrap_help", "std", "color", "error-context"] } clap_complete = "4.2.1" console = { version = "0.15.5", features = ["windows-console-colors"] } dirs = "5.0.1" diff --git a/docs/README.md b/docs/README.md index 0b505b967..7162ad219 100644 --- a/docs/README.md +++ b/docs/README.md @@ -138,6 +138,8 @@ The cli looks as follows: ```bash ➜ pixi -h +A package management and workflow tool + Usage: pixi [COMMAND] Commands: @@ -149,7 +151,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help + -h, --help Print help + -V, --version Print version ``` ## Creating a pixi project diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 5e331e3ed..100ab87ce 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -11,6 +11,7 @@ mod install; mod run; #[derive(Parser, Debug)] +#[command(version, about, long_about = None)] struct Args { #[command(subcommand)] command: Option,