2usage: root [-b] [-x] [-e] [-n] [-t] [-q] [-l] [-config] [-h|--help] [--version]
3 [--notebook] [--web=<type|off>] [dir] [data1.root...dataN.root] [file1.C...fileN.C]
4 [file1_C.so...fileN_C.so] [anyfile1..anyfileN] [-- [macro args]]
7root is an interactive interpreter of C++ code using Cling and the ROOT framework.
8For more information on ROOT, please refer to https://root.cern/
9An extensive Users Guide and API Reference are available from that website.
13 -b, --batch Run in batch mode without graphics
14 -x, --exit-on-exceptions Exit on exceptions
15 -e, --execute Execute the command passed between single quotes
16 -n, --no-logon-logoff Do not execute logon and logoff macros as specified in .rootrc
17 -t, --enable-threading Enable thread-safety and implicit multi-threading (IMT)
18 -q, --quit-after-processing Exit after processing command line macro files
19 -l, --no-banner Do not show the ROOT banner
20 -config print ./configure options
21 -h, -?, --help Show summary of options
22 --version Show the ROOT version
23 --notebook Execute ROOT notebook
24 --web Use web-based display for graphics, browser, geometry [deprecated, use "web=on" instead]
25 --web=<type> Use the specified web-based display such as chrome, firefox, qt6
26 For more options see the documentation of TROOT::SetWebDisplay()
27 --web=off Disable any kind of web-based display
28 [dir] if dir is a valid directory cd to it before executing
29 [data1.root...dataN.root] Open the given ROOT files; remote protocols (such as http://) are supported
30 [file1.C...fileN.C] Execute the ROOT macro file1.C ... fileN.C
31 Compilation flags as well as macro arguments can be passed, see format in https://root.cern/manual/root_macros_and_shared_libraries/
32 [file1_C.so...fileN_C.so] Load and execute file1_C.so ... fileN_C.so (or .dll if on Windows)
33 They should be already-compiled ROOT macros (shared libraries) or:
34 regular user shared libraries e.g. userlib.so with a function userlib(args)
35 [anyfile1..anyfileN] All other arguments pointing to existing files will be checked to see if they are ROOT Files (checking the MIME type inside the file) and if they are not they will be handled as a ROOT macro file
36 [-- [macro args]] Any arguments after a `--` will be treated as arguments to the last macro passed as a positional argument (e.g. `root myMacro.C -- 1 2 3` will be equivalent to `root "myMacro.C(1,2,3)"`)
static constexpr const char * kCommandLineOptionsHelp