I'm trying to get the command line args before they get processed by click:
print(click.get_current_context().find_root().params)
This just prints empty eventhough I gave script cmd1 cmd2 --arg1 --arg2 3
. I'm trying to get a string or list that would show script, cmd1 etc.
Update: Looks like I am able to access sys.argv I thought click "consumes" it but looks ok. However I don't know how reliable that is, what if some code modifies it? I looked at passing it as a meta but could not find the a good place to call get-current-context.