- Show all gbc options in documentation
- When running gbc without options show full help
This commit is contained in:
Eduardo Salinas 2017-05-31 19:12:54 -07:00 коммит произвёл Christopher Warrington
Родитель 4b96096668
Коммит f7f585bc2a
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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})
@ -125,7 +125,7 @@ if (Haskell_PANDOC_EXECUTABLE AND Doxygen_EXECUTABLE)
OPTIONS --self-contained --table-of-contents)
file(GLOB_RECURSE cpp_headers ../cpp/inc/bond/*.h)
set (doxygen_sources
doxygen/bond.doxygen
doxygen/bond_layout.xml