1
1
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:
Timothy Clem 2019-12-19 15:36:04 -08:00
parent b2ef8e9fe1
commit 13c49ee0a4

View File

@ -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