489
edits
Script 10k (talk | contribs) (→Global command-line arguments: no more global arguments anymore) |
Script 10k (talk | contribs) |
||
Line 56: | Line 56: | ||
|} | |} | ||
==Command-line | ==Command-line options== | ||
You can use any of the following operations bellow with XmlTools. If you don't provide all the required arguments to an option XmlTools will notice you. | |||
<tt> | ===Operations=== | ||
<tt>-a, --add-values</tt> | |||
:Add new values to a set of XML elements; | |||
: | |||
<tt> | <tt>--remove-values</tt> | ||
: | :Removes values from a set of XML elements; | ||
<tt> | <tt>--replace-value</tt> | ||
: | :Replaces 1 value in a set of XML elements; | ||
<tt> | <tt>--replace-all-values</tt> | ||
: | :Replaces all values in a set of XML elements; | ||
<tt> | <tt>-u, --update-elements</tt> | ||
: | :Updates all values in a set of XML elements; | ||
<tt> | <tt>-i, --invert-elements</tt> | ||
: | :Inverts a set of XML elements. | ||
<tt> | ===Operations inputs=== | ||
: | <tt>-c, --current-val <current-val></tt> | ||
:Current value(s) [use space as separator]; | |||
<tt> | <tt>-n, --new-val <new-val></tt> | ||
: | :New value(s) [use space as separator]; | ||
<tt>-d, --diff-old-new-val <diff-old-new-val></tt> | |||
:Difference between old and new value; | |||
<tt>--positions <positions></tt> | |||
:Positions [use space as separator] [0-index based]; | |||
<tt>-f, --files <files></tt> | |||
:XML files to process [wildcards supported]; | |||
<tt>-p, --patch-files <patch-files></tt> | |||
:Patch files to process [wildcards supported]; | |||
<tt>--force-target-files <force-target-files></tt> | |||
:Force the patch-files operation in the specified XML files. [wildcards supported]; | |||
<tt>-e, --element-name <element-name></tt> | |||
:Name of the XML element(s) where processing will occur; | |||
<tt>--parent-element-name <parent-element-name></tt> | |||
:Name of the XML parent element of <element-name> [used as filter]; | |||
<tt>--attribute-name <attribute-name></tt> | |||
:Attribute name of <element-name> [used as filter]; | |||
<tt>--attribute-value <attribute-value></tt> | |||
:Attribute value of <attribute-name> [used as filter]; | |||
<tt>-x, --xpath-expression <xpath-expression></tt> | |||
:[http://www.w3.org/TR/xpath/ XPath 1.0] expression to select elements where processing will occur; | |||
<tt>--no-backups</tt> | |||
:No backups [faster processing]; | |||
<tt>--no-verbose</tt> | |||
:Reduce the number of text messages output [faster processing]. | |||
==Patch file operations== | ==Patch file operations== |
edits