1[/ 2 Copyright 2016 Daniel James 3 4 Distributed under the Boost Software License, Version 1.0. 5 (See accompanying file LICENSE_1_0.txt or copy at 6 http://www.boost.org/LICENSE_1_0.txt) 7] 8 9[chapter Command Line Usage 10 [quickbook 1.7] 11 [id quickbook.command_line] 12 [source-mode teletype] 13] 14 15Quickbook is generally run by a build tool, but if you want to run it manually, 16it's pretty simple to use. Basic usage is: 17 18 quickbook filename.qbk 19 20Which, if successful, will print out something like: 21 22 Generating Output File: filename.xml 23 24[section:options Command Line Options] 25 26[variablelist 27 [[--help] [ 28 Prints out a summary of the options supported by quickbook, and exits. 29 ]] 30 [[--version] [ 31 Prints out the version of the quickbook executable, and exists. 32 ]] 33 [[--no-pretty-print] [ 34 Disable XML pretty printing. Normally quickbook runs its output through 35 a post processor which generates consistent XML indentation, this flag 36 disables it. 37 ]] 38 [[--strict] [ 39 Strict mode. Adds extra errors for possible issues, including sections that 40 weren't closed, and square brackets that don't match any tags or templates. 41 ]] 42 [[--no-self-linked-headers] [ 43 By default quickbook generates docbook headers that link to themselves, 44 so that in a web browser you can get a link to the header by right clicking 45 on the header and copying the link. This requires generating slightly odd 46 boostbook markup, so this head disables the feature and generates plain headers. 47 ]] 48 [[--indent] [ 49 Indentation to use in the pretty printer. 50 ]] 51 [[--linewidth] [ 52 Line width to use in the pretty printer. 53 ]] 54 [[--input-file path] [ 55 Used to explicitly specify that the argument is an input file. Normally not used, 56 as you can just write: ``quickbook filename.qbk``. 57 But if you wish to you can also write: ``quickbook --input-file filename.qbk``. 58 This could be useful if a file path could be confused with an option, for example 59 to use a file called `--filename.qbk`: 60 ``quickbook --input-file --filename.qbk`` 61 Only one input file can be specified. 62 ]] 63 [[--output-file path] [ 64 Explicitly specifiy the path of the file to be generated. By default, it's just the 65 input file name with the extension replaced by `.xml`. 66 ]] 67 [[--no-output] [ 68 Don't write out a boostbook file. This is useful for checking that a 69 document doesn't have any sytax errors, or for running with 70 `--output-deps`. If `--output-file-path` is also defined, that overwrites 71 this. 72 ]] 73 [[--output-deps path] [ 74 Writes the full path of all the files read in by quickbook to the given path. 75 This is useful for build tools so that they can tell when to rebuild the 76 documentation. 77 ]] 78 [[--ms-errors] [ 79 Use Microsoft Visual Studio style error and warn message format, so that 80 Visual Studio IDE will understand them. 81 ]] 82 [[--include-path path, -I path] [ 83 Add the given path to the include path, can be specified multiple times. 84 ]] 85 [[--define macro, -D macro] [ 86 Define a quickbook macro. This can have a value: ``quickbook -D __foo__=bar`` 87 Or you can just define an empty macro: ``quickbook -D __foo__`` 88 This can be useful for [link quickbook.ref.cond conditional generation]. 89 ]] 90 [[--image-location path] [ 91 Path the image elements are relative to. This is only used for reading 92 in SVG details. 93 ]] 94] 95 96[endsect] 97