mirror of
https://github.com/github/semantic.git
synced 2024-11-24 00:42:33 +03:00
Clean up language mode flags
This commit is contained in:
parent
b2ef8e9fe1
commit
13c49ee0a4
@ -168,31 +168,11 @@ graphCommand = command "graph" (info graphArgumentsParser (progDesc "Compute a g
|
||||
|
||||
languageModes :: Parser Language.PerLanguageModes
|
||||
languageModes = Language.PerLanguageModes
|
||||
<$> option auto ( long "python-mode"
|
||||
<> help "The AST representation to use for Python sources"
|
||||
<> metavar "ALaCarte|Precise"
|
||||
<> value Language.ALaCarte
|
||||
<> showDefault)
|
||||
<*> option auto ( long "ruby-mode"
|
||||
<> help "The AST representation to use for Ruby sources"
|
||||
<> metavar "ALaCarte|Precise"
|
||||
<> value Language.ALaCarte
|
||||
<> showDefault)
|
||||
<*> option auto ( long "go-mode"
|
||||
<> help "The AST representation to use for Go sources"
|
||||
<> metavar "ALaCarte|Precise"
|
||||
<> value Language.ALaCarte
|
||||
<> showDefault)
|
||||
<*> option auto ( long "typescript-mode"
|
||||
<> help "The AST representation to use for TypeScript sources"
|
||||
<> metavar "ALaCarte|Precise"
|
||||
<> value Language.ALaCarte
|
||||
<> showDefault)
|
||||
<*> option auto ( long "tsx-mode"
|
||||
<> help "The AST representation to use for TSX sources"
|
||||
<> metavar "ALaCarte|Precise"
|
||||
<> value Language.ALaCarte
|
||||
<> showDefault)
|
||||
<$> languageModeOption "python" "Python"
|
||||
<*> languageModeOption "ruby" "Ruby"
|
||||
<*> languageModeOption "go" "Go"
|
||||
<*> languageModeOption "typescript" "TypeScript"
|
||||
<*> languageModeOption "tsx" "TSX"
|
||||
<*> languageModeOption "javascript" "JavaScript"
|
||||
<*> languageModeOption "jsx" "JSX"
|
||||
where
|
||||
|
Loading…
Reference in New Issue
Block a user