From a85293cb7e755d5b81676088db205388488763a7 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 10 Sep 2025 01:25:04 +0530 Subject: Added copyright declaration to the help message --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 17 ++++++++++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dd240e6..5c45ede 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -24,7 +24,7 @@ dependencies = [ [[package]] name = "polydoro" -version = "0.1.1" +version = "0.1.2" dependencies = [ "bincode", ] diff --git a/Cargo.toml b/Cargo.toml index 1408682..ebc08b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ homepage = "https://git.vidhukant.com/polydoro/about" repository = "https://git.vidhukant.com/polydoro" readme = "README.md" keywords = ["pomodoro", "polybar", "statusbar", "widget", "lemonbar"] -version = "0.1.1" +version = "0.1.2" edition = "2024" [dependencies] diff --git a/src/main.rs b/src/main.rs index 6042929..d3e27f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,22 @@ fn print_usage() { println!("\tskip:\t\tSkip the current timer (timer needs to be in a running state)"); println!("\tsoft-reset:\tGo to the beginning of the current timer"); println!("\thard-reset:\tGo to the beginning of the first timer"); - println!("\treset:\t\tConditional soft/hard reset"); + println!("\treset:\t\tConditional soft/hard reset\n"); + + println!("Copyright (C) 2025 Vidhu Kant Sharma \n"); + + println!("This program is free software: you can redistribute it and/or modify"); + println!("it under the terms of the GNU General Public License as published by"); + println!("the Free Software Foundation, either version 3 of the License, or"); + println!("(at your option) any later version.\n"); + + println!("This program is distributed in the hope that it will be useful,"); + println!("but WITHOUT ANY WARRANTY; without even the implied warranty of"); + println!("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"); + println!("GNU General Public License for more details.\n"); + + println!("You should have received a copy of the GNU General Public License"); + println!("along with this program. If not, see ."); } fn main() { -- cgit v1.2.3