Fix: Comments cosmetics
This commit is contained in:
parent
a16fdd3c5f
commit
52a12426e3
@ -95,9 +95,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// gst stamp --start --task NUM --description "desc" --dstart "20120101" --dend "20120101"
|
// gst stamp [--start | --stop | --update]
|
||||||
// gst stamp --stop
|
|
||||||
// gst stamp --update --description "desc" --dstart "20120101" --dend "20120101"
|
|
||||||
("stamp", Some(_matches)) => {
|
("stamp", Some(_matches)) => {
|
||||||
let start = _matches.occurrences_of("start");
|
let start = _matches.occurrences_of("start");
|
||||||
let stop = _matches.occurrences_of("stop");
|
let stop = _matches.occurrences_of("stop");
|
||||||
@ -108,6 +106,7 @@ fn main() {
|
|||||||
let description: &str = _matches.value_of("description").unwrap_or("").trim();
|
let description: &str = _matches.value_of("description").unwrap_or("").trim();
|
||||||
let dstart: &str = _matches.value_of("dstart").unwrap_or("").trim();
|
let dstart: &str = _matches.value_of("dstart").unwrap_or("").trim();
|
||||||
let dend: &str = _matches.value_of("dend").unwrap_or("").trim();
|
let dend: &str = _matches.value_of("dend").unwrap_or("").trim();
|
||||||
|
// gst stamp --start --task NUM --description "desc" --dstart "20120101" --dend "20120101"
|
||||||
if start == 1 {
|
if start == 1 {
|
||||||
console::info("Add a new stamp");
|
console::info("Add a new stamp");
|
||||||
match task {
|
match task {
|
||||||
@ -130,6 +129,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// gst stamp --stop
|
||||||
else if stop == 1 {
|
else if stop == 1 {
|
||||||
console::info("Stop last stamp");
|
console::info("Stop last stamp");
|
||||||
let stamp = Stamp {
|
let stamp = Stamp {
|
||||||
@ -147,6 +147,7 @@ fn main() {
|
|||||||
err => println!("KO: {:?}, something happened", err),
|
err => println!("KO: {:?}, something happened", err),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// gst stamp --update --description "desc" --dstart "20120101" --dend "20120101"
|
||||||
else if update == 1 {
|
else if update == 1 {
|
||||||
console::info("Update last stamp");
|
console::info("Update last stamp");
|
||||||
// let stamp = {
|
// let stamp = {
|
||||||
|
Loading…
Reference in New Issue
Block a user