cling
cling copied to clipboard
Command line parameters in scripts
Hello. I'd love to know how I can handle command line parameters in a script file.
Like let's say I have the script file test.cpp (starts with #!/path/to/cling) and I call it like ./test.cpp foobar, how can I access the parameter foobar?
Essentially what are the equivalents to $1, $2, etc. or int argc, char* argv[]
I don't think we have that - but it's a great idea! PRs welcome! :-)
Giving this a gentle bump as I believe this would be a great feature!