Skip to content

Commit

Permalink
Add --version flag and about text to CLI (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnestler authored Jan 4, 2024
1 parent efa3e22 commit c8d25ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

* Add `--version` flag and about text to CLI

## [0.6.1] - 2024-01-03

### Fixed
Expand Down
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ pub enum ColorOptions {
}

#[derive(Debug, Parser)]
#[clap(
version,
about = "Attractorr attracts magnets! A tool to collect magnet links from various sources."
)]
struct Args {
/// Sort results by the number of seeders or leechers.
#[clap(long, value_enum, ignore_case = true)]
Expand Down

0 comments on commit c8d25ba

Please sign in to comment.