This commit is contained in:
Mylloon 2024-01-24 09:11:44 +01:00
parent 8fdebbe4a1
commit d237ff3098
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -10,15 +10,15 @@ mod utils;
#[derive(Parser)] #[derive(Parser)]
#[clap(version, about, long_about = None)] #[clap(version, about, long_about = None)]
struct Args { struct Args {
/// The class you want to get the timetable, i.e.: M1-LP /// The class you want to get the timetable, i.e.: M1
#[clap(value_parser)] #[clap(value_parser)]
class: String, class: String,
/// The semester you want (1 or 2) /// The semester you want (1 or 2), default to current semester
#[clap(short, long, value_parser, value_name = "SEMESTER NUMBER")] #[clap(short, long, value_parser, value_name = "SEMESTER NUMBER")]
semester: Option<i8>, semester: Option<i8>,
/// The year, default to the current year /// The year, default to current year
#[clap(short, long, value_parser, value_name = "YEAR")] #[clap(short, long, value_parser, value_name = "YEAR")]
year: Option<i32>, year: Option<i32>,