Compare commits

...

2 Commits

Author SHA1 Message Date
Ondrej Novak bac4079c4c add program description to --help 2026-02-19 21:34:21 +01:00
Ondrej Novak 4a2794c724 add cli arg to set timetable padding 2026-02-19 21:33:40 +01:00
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@ use std::error::Error;
use std::fmt; use std::fmt;
use std::iter; use std::iter;
/// Simple program to show the time in different timezones
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
#[command(version, about, long_about = None)] #[command(version, about, long_about = None)]
pub struct Args { pub struct Args {
@ -20,6 +21,10 @@ pub struct Args {
#[arg(short, long)] #[arg(short, long)]
pub date: Option<String>, pub date: Option<String>,
/// number of preceding and succeeding time records in the timetable
#[arg(short, long, default_value_t = 5)]
pub padding: i8,
#[arg(short, long, default_value = "Local")] #[arg(short, long, default_value = "Local")]
pub local: String, pub local: String,