Skip to content

Commit c5318d9

Browse files
committed
mark flags mutally exclusive: list-langs, list-formats, list-themes
1 parent 07510fd commit c5318d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,5 @@ func init() {
107107
rootCmd.Flags().BoolVar(&listLangs, "list-langs", false, "print a list of supported languages for syntax highlighting")
108108
rootCmd.Flags().BoolVar(&listFormats, "list-formats", false, "print a list of supported output formats")
109109
rootCmd.Flags().BoolVar(&listThemes, "list-themes", false, "print a list of supported themes with preview")
110+
rootCmd.MarkFlagsMutuallyExclusive("list-langs", "list-formats", "list-themes")
110111
}

0 commit comments

Comments
 (0)