From fc349551e39d4b1203a3743a76ac953686d49e07 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Wed, 15 Dec 2021 21:17:48 +0900 Subject: Use golangci-lint --- cmd/maleeni/compile.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'cmd/maleeni/compile.go') diff --git a/cmd/maleeni/compile.go b/cmd/maleeni/compile.go index 2fcb8ad..e353875 100644 --- a/cmd/maleeni/compile.go +++ b/cmd/maleeni/compile.go @@ -14,22 +14,22 @@ import ( ) var compileFlags = struct { - debug *bool - compLv *int - output *string + debug *bool + compLv *int + output *string }{} func init() { cmd := &cobra.Command{ - Use: "compile", - Short: "Compile a lexical specification into a DFA", - Long: `compile takes a lexical specification and generates a DFA accepting the tokens described in the specification.`, + Use: "compile", + Short: "Compile a lexical specification into a DFA", + Long: `compile takes a lexical specification and generates a DFA accepting the tokens described in the specification.`, Example: ` Read from/Write to the specified file: maleeni compile lexspec.json -o clexspec.json Read from stdin and write to stdout: cat lexspec.json | maleeni compile`, - Args: cobra.MaximumNArgs(1), - RunE: runCompile, + Args: cobra.MaximumNArgs(1), + RunE: runCompile, } compileFlags.compLv = cmd.Flags().Int("compression-level", compiler.CompressionLevelMax, "compression level") compileFlags.output = cmd.Flags().StringP("output", "o", "", "output file path (default stdout)") -- cgit v1.2.3