Skip to content

Commit 97777cf

Browse files
committed
add option for pretty printing in CLI
1 parent a69605f commit 97777cf

File tree

2 files changed

+71
-62
lines changed

2 files changed

+71
-62
lines changed

tmc-langs-cli/src/app.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ pub fn create_app() -> App<'static, 'static> {
1515
.author(env!("CARGO_PKG_AUTHORS"))
1616
.about(env!("CARGO_PKG_DESCRIPTION"))
1717
.setting(AppSettings::SubcommandRequiredElseHelp)
18+
.arg(Arg::with_name("pretty")
19+
.help("Pretty-prints all output")
20+
.long("pretty"))
1821

1922
.subcommand(SubCommand::with_name("checkstyle")
2023
.about("Checks the code style for the given exercise")

0 commit comments

Comments
 (0)