lyx --version (return code: 0)
LyX 2.1.4 (2015-07-24) Built on Sep 18 2015, 17:09:10 Configuration Host type: x86_64-pc-linux-gnu Special build flags: build=release warnings use-enchant C++ Compiler: g++ (5.2.1) C++ Compiler LyX flags: C++ Compiler flags: -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security Linker flags: Linker user flags: -Wl,-z,defs -Wl,--as-needed -Wl,-Bsymbolic-functions -Wl,-z,relro Qt 4 Frontend: Qt 4 version: 4.8.6 Packaging: posix LyX binary dir: /usr/bin LyX files dir: /usr/share/lyx
lyx --help (return code: 0)
Usage: lyx [ command line switches ] [ name.lyx ... ] Command line switches (case sensitive): -help summarize LyX usage -userdir dir set user directory to dir -sysdir dir set system directory to dir -geometry WxH+X+Y set geometry of the main window -dbg feature[,feature]... select the features to debug. Type `lyx -dbg' to see the list of features -x [--execute] command where command is a lyx command. -e [--export] fmt where fmt is the export format of choice. Look in Tools->Preferences->File Handling->File Formats->Short Name to see which parameter (which differs from the format name in the File->Export menu) should be passed. Note that the order of -e and -x switches matters. -E [--export-to] fmt filename where fmt is the export format of choice (see --export), and filename is the destination filename. -i [--import] fmt file.xxx where fmt is the import format of choice and file.xxx is the file to be imported. -f [--force-overwrite] what where what is either `all', `main' or `none', specifying whether all files, main file only, or no files, respectively, are to be overwritten during a batch export. Anything else is equivalent to `all', but is not consumed. -n [--no-remote] open documents in a new instance -r [--remote] open documents in an already running instance (a working lyxpipe is needed) -batch execute commands without launching GUI and exit. -version summarize version and build info Check the LyX man page for more details.