diff --git a/README.md b/README.md index e267ad9..0ad8db5 100644 --- a/README.md +++ b/README.md @@ -23,15 +23,25 @@ $ rustup default stable ``` Clone this repo + ```sh -$ git clone https://github.com/eRgo35/ah +$ git clone https://github.com/eRgo35/ah ``` + Change directory ```sh $ cd ah ``` +```sh +$ cargo aur +``` + +```sh +$ cd target/cargo-aur +``` + Install package ```sh diff --git a/src/cli.rs b/src/cli.rs index 9fae514..8b915af 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,10 +1,12 @@ use clap::{Args, Parser, Subcommand}; +const VERSION: Option<&str> = option_env!("CARGO_PKG_VERSION"); + #[derive(Parser)] #[command( name = "ah", author = "Michał Czyż", - version = "0.1.0", + version = VERSION.unwrap_or("unknown"), about = "A declarative package manager for Arch Linux", long_about = "Arch Helper is a declarative package management tool for Arch Linux. It leverages paru or other package managers for seamless integration." )]