From 5fd5d31bb28c0b60f84b18b872f4cc9c46995d90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Edvin=20=C3=85kerfeldt?= <ironedde@ludd.ltu.se>
Date: Thu, 7 Jan 2021 14:39:30 +0100
Subject: [PATCH] Cli, change naming for examples

---
 srp_analysis/src/main.rs | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/srp_analysis/src/main.rs b/srp_analysis/src/main.rs
index 9282f2a..e472faf 100644
--- a/srp_analysis/src/main.rs
+++ b/srp_analysis/src/main.rs
@@ -22,8 +22,8 @@ enum Example {
 arg_enum! {
     #[derive(Debug)]
     enum Example {
-        POSSIBLE,
-        IMPOSSIBLE
+        Schedulable,
+        NotSchedulable
     }
 }
 
@@ -49,11 +49,11 @@ struct Opt {
     verbose: u8,
 
     /// Generate an example file
-    #[structopt(long)] //
+    #[structopt(long)]
     generate: bool,
 
-
-    #[structopt(short = "ex", long = "example", possible_values = &Example::variants(), case_insensitive = true, default_value = "possible")]
+    /// The example you want to generate
+    #[structopt(short = "ex", long = "example", possible_values = &Example::variants(), case_insensitive = true, default_value = "Schedulable")]
     example: Example,
 
     /// Output file for generated example
@@ -85,11 +85,11 @@ fn real_main() -> i32 {
     verbose_p!("Parameters: {:?}", opt, 1);
     if opt.generate {
         let tasks = match opt.example {
-            Example::POSSIBLE => {
+            Example::Schedulable => {
                 verbose_p!("{}", "Generating a schedulable task set", 1);
                 schedulable_task_set()
             },
-            Example::IMPOSSIBLE => {
+            Example::NotSchedulable => {
                 verbose_p!("{}", "Generating a non-schedulable task set", 1);
                 non_schedulable_task_set()
             }
-- 
GitLab