diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-12-15 21:17:48 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-12-15 22:35:54 +0900 |
commit | fc349551e39d4b1203a3743a76ac953686d49e07 (patch) | |
tree | 19507233ddad5ef6ef5b7c1c8f178c0fb6dfc10a /cmd/maleeni/compile.go | |
parent | Update CHANGELOG (diff) | |
download | tre-fc349551e39d4b1203a3743a76ac953686d49e07.tar.gz tre-fc349551e39d4b1203a3743a76ac953686d49e07.tar.xz |
Use golangci-lint
Diffstat (limited to 'cmd/maleeni/compile.go')
-rw-r--r-- | cmd/maleeni/compile.go | 16 |
1 files changed, 8 insertions, 8 deletions
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)") |