Add support for board attribute to parse output

This allows for writing parameter meta data which is specific to a
board type
This commit is contained in:
Don Gagne
2015-04-21 12:31:08 -07:00
parent 39f6e13c18
commit 6bf0a2618b
4 changed files with 53 additions and 33 deletions
+6 -1
View File
@@ -65,6 +65,11 @@ def main():
metavar="FILENAME",
help="Create XML file"
" (default FILENAME: parameters.xml)")
parser.add_argument("-b", "--board",
nargs='?',
const="",
metavar="BOARD",
help="Board to create xml parameter xml for")
parser.add_argument("-w", "--wiki",
nargs='?',
const="parameters.wiki",
@@ -116,7 +121,7 @@ def main():
# Output to XML file
if args.xml:
print("Creating XML file " + args.xml)
out = xmlout.XMLOutput(param_groups)
out = xmlout.XMLOutput(param_groups, args.board)
out.Save(args.xml)
# Output to DokuWiki tables