通过指定命令行参数的Doxygen [英] Specify Doxygen parameters through command line

查看:442
本文介绍了通过指定命令行参数的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

任何提示AP preciated!

Any tips appreciated!

推荐答案

看一下常见问题的答案问题17: HTTP: //www.doxygen.org/faq.html ,下面重复方便:

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

而不是通过命令行选项,但doxygen的可以从标准输入读取,所以你通过它可以管的事情。下面是一个例子如何覆盖在命令行配置文件的选项(假设UNIX环境中):

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 -

对于Windows下面会做同样的:

For Windows the following would do the same:

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

如果指定了同名的多个选项的doxygen然后将使用最后一个。要追加到可以使用+ =运算符现有的选项。

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.

这篇关于通过指定命令行参数的Doxygen的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆