doxygen 命令_通过指定命令行参数的Doxygen

Well I am creating a script to automatically generate documentation for my projects with Doxygen, which seems like an awesome tool.

What is not clear to me, is if the user can use specify directly parameters, such as project name, project description etc., by setting them besides command:

doxygen -g "parameter modification here"

doxygen Doxyfile

Any tips appreciated!

解决方案

Look at the answer for question 17 in the FAQ: http://www.doxygen.org/faq.html, repeated below for convenience:

Can I configure doxygen from the command line?

Not via command line options, but doxygen can read from stdin, so you can pipe things through it. Here's an example how to override an option in a configuration file from the command line (assuming a UNIX environment):

( cat Doxyfile ; echo "PROJECT_NUMBER=1.0" ) | doxygen -

For Windows the following would do the same:

( type Doxyfile & echo PROJECT_NUMBER=1.0 ) | doxygen.exe -

If multiple options with the same name are specified then doxygen will use the last one. To append to an existing option you can use the += operator.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值