[doc] Output all gbc options
- Show all gbc options in documentation - When running gbc without options show full help
This commit is contained in:
Родитель
4b96096668
Коммит
f7f585bc2a
|
@ -29,7 +29,7 @@ type Template = MappingContext -> String -> [Import] -> [Declaration] -> (String
|
|||
main :: IO()
|
||||
main = do
|
||||
args <- getArgs
|
||||
options <- (if null args then withArgs ["--help"] else id) getOptions
|
||||
options <- (if null args then withArgs ["--help=all"] else id) getOptions
|
||||
setJobs $ jobs options
|
||||
case options of
|
||||
Cpp {..} -> cppCodegen options
|
||||
|
|
|
@ -70,7 +70,7 @@ if (Haskell_PANDOC_EXECUTABLE AND Doxygen_EXECUTABLE)
|
|||
add_custom_command(
|
||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/html/manual/gbc.html"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy .pandoc/templates/cmdargs.html "${CMAKE_CURRENT_BINARY_DIR}/html/manual/gbc.html"
|
||||
COMMAND ${GBC_EXECUTABLE} --help=html >> "${CMAKE_CURRENT_BINARY_DIR}/html/manual/gbc.html"
|
||||
COMMAND ${GBC_EXECUTABLE} --help=all,html >> "${CMAKE_CURRENT_BINARY_DIR}/html/manual/gbc.html"
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS .pandoc/templates/cmdargs.html gbc ${GBC_EXECUTABLE})
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче