$ basex -h
BaseX [Standalone]
Usage: basex [-bcdioqsuvVwxzbcdiLoqsuvVwxz] [file]
[file] Execute XQuery file
-b<pars> Bind external XQuery variables
-d Activate debugging mode
-i<input> Open initial file or database
-L Add trailing newline after query result
-o<file> Write output to file
-q<expr> Execute XQuery expression
|
| {{Mono|-iitems.xml -q"//item"}}
|- valign="top"
| {{Mono|-L}}
| Add trailing newline after query result. Useful for batch processing or pipelining on Unix systems.
|
|
|- valign="top"
| {{Mono|-o<file>}}
Since {{Version|7.1}}, multiple query files and {{Mono|-c}}/{{Mono|-i}}/{{Mono|-q}} flags can be specified. All other options will be set before any other operation takes place. The specified inputs, query files, queries and commands will be subsequently evaluated after that in the given order. The standard input can be parsed by specifying a single dash ({{mono|-}}) as argument.
Since {{Version|7.1.1}} {{Mono|-L}} option to add a trailing newline after query result serialization is available.
==BaseX Server==