We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fdb7ec commit dd4dfe6Copy full SHA for dd4dfe6
1 file changed
src/cli.rs
@@ -105,6 +105,13 @@ pub fn parse_args() -> Config {
105
.action(ArgAction::SetTrue)
106
.required(false),
107
)
108
+ .arg(
109
+ Arg::new("csv")
110
+ .long("csv")
111
+ .value_name("CSV_FILE")
112
+ .help("set the output file for the CSV report")
113
+ .required(false),
114
+ )
115
.arg(
116
Arg::new("gituntracked")
117
.long("gituntracked")
@@ -141,6 +148,11 @@ pub fn parse_args() -> Config {
141
148
opt.throttle = Some(throttle);
142
149
}
143
150
151
+ if let Some(f) = matches.get_one::<String>("csv") {
152
+ opt.csv_file =
153
+ Some(Path::new(&f.replace(['/', '\\'], std::path::MAIN_SEPARATOR_STR)).to_path_buf());
154
+ }
155
+
144
156
if let Some(markup_types) = matches.get_many::<String>("markup-types") {
145
157
opt.markup_types = Some(
146
158
markup_types
0 commit comments