From 2c08f4c82bc6f692cf9de8803b0dcdc12100b1d7 Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Wed, 3 Jan 2024 18:52:56 +0100 Subject: [PATCH] Add --version flag and about text to CLI --- CHANGELOG.md | 6 ++++++ src/main.rs | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3d2a11..38dbbc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/main.rs b/src/main.rs index 64dac43..86d797f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)]