diff --git a/Cargo.lock b/Cargo.lock index bd426a9..5ab6140 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1700,8 +1700,8 @@ dependencies = [ ] [[package]] -name = "you_dl" -version = "0.1.0" +name = "you-dl" +version = "0.3.0" dependencies = [ "async-compat", "clap", diff --git a/Cargo.toml b/Cargo.toml index 6c1ec9d..d3c2895 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "you_dl" -version = "0.1.0" +name = "you-dl" +version = "0.3.0" authors = ["L-oris "] edition = "2018" -default-run = "you_dl" +default-run = "you-dl" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index f15f08e..e12c64a 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,21 @@ A tiny and easy to use YouTube downloader. ## Installation -Available for macOS: +#### On macOS (or Linux) via Homebrew ```sh brew tap l-oris/you-dl brew install you-dl ``` +#### On Ubuntu (and other Debian-based Linux distributions) + +Download the latest `.deb` package from the [release](https://github.com/l-oris/you-dl/releases) page and install it via: + +```sh +sudo dpkg -i you-dl-amd64.deb +``` + ## Usage ```sh diff --git a/src/config/config_error.rs b/src/config/config_error.rs index b1682a1..8782b57 100644 --- a/src/config/config_error.rs +++ b/src/config/config_error.rs @@ -6,7 +6,7 @@ pub struct ConfigError(pub String); impl fmt::Display for ConfigError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "failed to parse program arguments: {}", self.0) + write!(f, "invalid program arguments: {}", self.0) } } diff --git a/src/config/raw_cli_args.rs b/src/config/raw_cli_args.rs index 19cc176..20b39c7 100644 --- a/src/config/raw_cli_args.rs +++ b/src/config/raw_cli_args.rs @@ -1,5 +1,5 @@ use super::ConfigError; -use clap::{App, Arg}; +use clap::{crate_version, App, Arg}; #[derive(Debug)] pub struct RawCliArgs { @@ -17,6 +17,7 @@ const USE_WRAPPER_ARG: &str = "wrapper"; pub fn parse() -> Result { let mut app = App::new("you-dl") + .version(crate_version!()) .arg( Arg::new(URL_ARG) .value_name("URL")