diff options
author | Don Gagne <don@thegagnes.com> | 2015-04-21 12:31:08 -0700 |
---|---|---|
committer | Don Gagne <don@thegagnes.com> | 2015-04-21 12:31:08 -0700 |
commit | 6bf0a2618bf5e2680f61c4d2a1258eed62103f0e (patch) | |
tree | 0d944e4fe5edf7fd9fd0c4c69f65bc058aef13be /Tools/px_process_params.py | |
parent | 39f6e13c18414ae92e898640c62574d94171ae2d (diff) | |
download | px4-firmware-6bf0a2618bf5e2680f61c4d2a1258eed62103f0e.tar.gz px4-firmware-6bf0a2618bf5e2680f61c4d2a1258eed62103f0e.tar.bz2 px4-firmware-6bf0a2618bf5e2680f61c4d2a1258eed62103f0e.zip |
Add support for board attribute to parse output
This allows for writing parameter meta data which is specific to a
board type
Diffstat (limited to 'Tools/px_process_params.py')
-rw-r--r-- | Tools/px_process_params.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/px_process_params.py b/Tools/px_process_params.py index 12128a997..cb2202d52 100644 --- a/Tools/px_process_params.py +++ b/Tools/px_process_params.py @@ -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 |