Hello,
As someone who has been learning both C++ and ROOT at the same time, one of the issues I am having trouble with is figuring out how to implement a way to parse arguments from the command line into my main function. Currently, I have my main function where I want to open a ROOT file, it looks like this
int main(int argc, char* argv[]) {
//Parse arguments
std::unique_ptr<TFile> myFile{TFile::Open(filename, "UPDATE")};
//TFile full(fileName);
fileIterator(myFile);
return 0;
//RNTupleMover();
I would like a way to input a root file from the command line and get its name. Thank you!
ROOT Version: 6.34.04
Platform: Windows
Compiler: Not Provided