1
0
mirror of https://github.com/shimunn/gitredditor.git synced 2023-11-17 18:42:43 +01:00
commit is a bit off
all operations should be streamed
This commit is contained in:
shimunn
2019-05-05 22:49:39 +02:00
parent 05c88b1486
commit 7dd2619ae3
5 changed files with 244 additions and 44 deletions

15
src/opts.rs Normal file
View File

@@ -0,0 +1,15 @@
use std::path::PathBuf;
pub use structopt::StructOpt;
#[derive(StructOpt, Debug)]
#[structopt(name = "gitredditor")]
pub struct Opts {
#[structopt(short = "f", long = "fetch", default_value = "20")]
pub fetch: usize,
#[structopt(short = "r", long = "redditor")]
pub redditor: String,
#[structopt(parse(from_os_str))]
pub repo: Option<PathBuf>,
}