Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
root-argparse.py
Go to the documentation of this file.
1import argparse
2
4 parser = argparse.ArgumentParser(add_help=False, prog='root',
5 description = """
6root is an interactive interpreter of C++ code using Cling and the ROOT framework.
7For more information on ROOT, please refer to https://root.cern/
8An extensive Users Guide and API Reference are available from that website.
9""")
10 parser.add_argument('-b', help='Run in batch mode without graphics')
11 parser.add_argument('-x', help='Exit on exceptions')
12 parser.add_argument('-e', help='Execute the command passed between single quotes')
13 parser.add_argument('-n', help='Do not execute logon and logoff macros as specified in .rootrc')
14 parser.add_argument('-t', help='Enable thread-safety and implicit multi-threading (IMT)')
15 parser.add_argument('-q', help='Exit after processing command line macro files')
16 parser.add_argument('-l', help='Do not show the ROOT banner')
17 parser.add_argument('-a', help='Show the ROOT splash screen (Windows only)')
18 parser.add_argument('-config', help='print ./configure options')
19 parser.add_argument('-h','-?', '--help', help='Show summary of options')
20 parser.add_argument('--version', help='Show the ROOT version')
21 parser.add_argument('--notebook', help='Execute ROOT notebook')
22 parser.add_argument('--web', help='Use web-based display for graphics, browser, geometry')
23 parser.add_argument('--web=<type>', help='Use the specified web-based display such as chrome, firefox, qt6\nFor more options see the documentation of TROOT::SetWebDisplay()')
24 parser.add_argument('--web=off', help='Disable any kind of web-based display')
25 parser.add_argument('[dir]', help='if dir is a valid directory cd to it before executing')
26 parser.add_argument('[data1.root...dataN.root]', help='Open the given ROOT files; remote protocols (such as http://) are supported')
27 parser.add_argument('[file1.C...fileN.C]', help='Execute the ROOT macro file1.C ... fileN.C\nCompilation flags as well as macro arguments can be passed, see format in https://root.cern/manual/root_macros_and_shared_libraries/')
28 parser.add_argument('[file1_C.so...fileN_C.so]', help='Load and execute file1_C.so ... fileN_C.so (or .dll if on Windows)\nThey should be already-compiled ROOT macros (shared libraries) or:\nregular user shared libraries e.g. userlib.so with a function userlib(args)')
29 parser.add_argument('[anyfile1..anyfileN]', help='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')
30 return parser
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.