From e9c908e56299647f709f990f2783614a38ae95ff Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Thu, 5 Oct 2023 19:36:33 +0200 Subject: [PATCH] Add --version flag --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index d9b9b3a..42fae7c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ +//! CLI to delete dated files in a directory according to a time period config. +//! Useful for backup directories that accumulate files over time. + mod config; #[macro_use] @@ -15,6 +18,7 @@ use std::path::PathBuf; type FileName = DateTime; #[derive(Parser)] +#[command(version)] struct Opt { config: PathBuf,