mirror of
https://github.com/gflags/gflags.git
synced 2025-04-06 05:55:05 +00:00
Report category names via the xml help output (but not, yet,
during 'normal' help output). R=ncalvin DELTA=3 (3 added, 0 deleted, 0 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=3066 git-svn-id: https://gflags.googlecode.com/svn/trunk@63 6586e3c6-dcc4-952a-343f-ff74eb82781d
This commit is contained in:
parent
10caa99e2d
commit
29f02f9896
2 changed files with 3 additions and 0 deletions
|
@ -212,6 +212,7 @@ static string DescribeOneFlagInXML(const CommandLineFlagInfo& flag) {
|
|||
AddXMLTag(&r, "file", flag.filename);
|
||||
AddXMLTag(&r, "name", flag.name);
|
||||
AddXMLTag(&r, "meaning", flag.description);
|
||||
AddXMLTag(&r, "categories", flag.categories);
|
||||
AddXMLTag(&r, "default", flag.default_value);
|
||||
AddXMLTag(&r, "current", flag.current_value);
|
||||
AddXMLTag(&r, "type", flag.type);
|
||||
|
|
|
@ -182,6 +182,8 @@ Expect $LINENO 1 "/gflags_reporting.cc" "" --helppackage
|
|||
# xml!
|
||||
Expect $LINENO 1 "/gflags_unittest.cc</file>" \
|
||||
"/gflags_unittest.cc:" --helpxml
|
||||
Expect $LINENO 1 "<name>test_bool</name><meaning>tests bool-ness</meaning><categories>important,has_category</categories><default>false</default><current>false</current><type>bool</type>" \
|
||||
"/gflags_unittest.cc:" --helpxml
|
||||
|
||||
# just print the version info and exit
|
||||
Expect $LINENO 0 "gflags_unittest" "gflags_unittest.cc" --version
|
||||
|
|
Loading…
Add table
Reference in a new issue