Verified Commit 1f7b712a authored by Ole Martin Ruud's avatar Ole Martin Ruud
Browse files

Cleanup old comments and commands

parent 3659dbea
......@@ -59,8 +59,6 @@ pub struct Opts {
#[derive(StructOpt, Clone, Debug)]
#[structopt(rename_all = "kebab-case")]
enum Command {
#[structopt(about = "Authenticate to service to ensure it works")]
Authenticate,
#[structopt(about = "Display options regarding buildings, rooms, etc.")]
Options {
#[structopt(
......@@ -78,20 +76,20 @@ enum Command {
hour: String,
#[structopt(short = "D", long, help = "Duration of order (HH:MM)")]
duration: String,
#[structopt(short, long, help = "Area code (see query-options)")]
#[structopt(short, long, help = "Area code (see options)")]
area: Option<String>,
#[structopt(short, long, help = "Building code (see query-options)")]
#[structopt(short, long, help = "Building code (see options)")]
building: Option<String>,
#[structopt(short, long, help = "Minimum size of room")]
size: Option<usize>,
},
#[structopt(about = "Order the first avaliable room the given day")]
#[structopt(about = "Order the specified room the given day")]
Order {
#[structopt(short, long, help = "Name of order")]
name: String,
#[structopt(short, long, help = "Extra description to add to order")]
extra_notes: Option<String>,
#[structopt(short, long, help = "Room code (see query-options)")]
#[structopt(short, long, help = "Room code (see options)")]
room: String,
#[structopt(short, long, help = "Day to order room (DD.MM.YYYY)")]
day: String,
......@@ -136,7 +134,6 @@ fn run() -> Result<()> {
use crate::Command::*;
match &opts.command {
Authenticate => app.authenticate().map(|_| ()),
Options { fresh } => app.options(*fresh),
Query {
day,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment