2 |
|
|
3 |
# Updates the built-in LSCP documentation reference of the LSCP shell. |
# Updates the built-in LSCP documentation reference of the LSCP shell. |
4 |
# |
# |
5 |
# Copyright (c) 2014 Christian Schoenebeck |
# Copyright (c) 2014-2016 Christian Schoenebeck |
6 |
# |
# |
7 |
# Extracts all sections from Documentation/lscp.xml marked with our magic |
# Extracts all sections from Documentation/lscp.xml marked with our magic |
8 |
# XML attribute "lscp_cmd=true" (and uses the section's "anchor" XML attribute |
# XML attribute "lscp_cmd=true" (and uses the section's "anchor" XML attribute |
144 |
|
|
145 |
# parse command line argument(s) |
# parse command line argument(s) |
146 |
my $g_debug_xml_extract = 0; |
my $g_debug_xml_extract = 0; |
147 |
if (defined($ARGV[0]) and $ARGV[0] eq "--debug-xml-extract") { |
foreach $arg (@ARGV) { |
148 |
$g_debug_xml_extract = 1; |
if ($arg eq "--debug-xml-extract") { |
149 |
|
$g_debug_xml_extract = 1; |
150 |
|
} elsif ($arg =~ /^--output/) { # argument --output=OUTFILE |
151 |
|
my ($name, $value) = split(/=|\s+/, $arg); # key value separated by space or "=" character |
152 |
|
$REFERENCE_CPP_FILE = $value; |
153 |
|
} |
154 |
} |
} |
155 |
|
|
156 |
# will be populated by collectCommands() |
# will be populated by collectCommands() |