Skip to content

Commit

Permalink
minor updates: print version, readme for deb...
Browse files Browse the repository at this point in the history
  • Loading branch information
dehre committed Jan 12, 2021
1 parent 26c9465 commit 1c23fcb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "you_dl"
version = "0.1.0"
name = "you-dl"
version = "0.3.0"
authors = ["L-oris <loris4526@gmail.com>"]
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

Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/config/config_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/config/raw_cli_args.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::ConfigError;
use clap::{App, Arg};
use clap::{crate_version, App, Arg};

#[derive(Debug)]
pub struct RawCliArgs {
Expand All @@ -17,6 +17,7 @@ const USE_WRAPPER_ARG: &str = "wrapper";

pub fn parse() -> Result<RawCliArgs, ConfigError> {
let mut app = App::new("you-dl")
.version(crate_version!())
.arg(
Arg::new(URL_ARG)
.value_name("URL")
Expand Down

0 comments on commit 1c23fcb

Please sign in to comment.