Skip to content

Commit 46d9573

Browse files
committed
🐛 Fix swapped output
1 parent 031229e commit 46d9573

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Cli.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct Today: ParsableCommand {
3030
)) var rejectTag: String = ""
3131

3232
@Option(help: ArgumentHelp(
33-
"Outpt format <f>. Available: json or markdown ",
33+
"Output format <f>. Available: json or markdown ",
3434
discussion: "Output format",
3535
valueName: "f"
3636
)) var format: Format = .json
@@ -39,9 +39,9 @@ struct Today: ParsableCommand {
3939
let events = Plan().today(rejectTag: rejectTag)
4040
switch format {
4141
case .json:
42-
events.printAsMarkdown()
43-
case .markdown:
4442
events.printAsJson()
43+
case .markdown:
44+
events.printAsMarkdown()
4545
}
4646
}
4747
}

0 commit comments

Comments
 (0)