Closed pllim closed 5 years ago
From README:
When running your script, you can add ``--verbose`` to see the output of the
commands, and ``--dry`` to not open pull requests.
But how does one run the script and pass in such things? I don't see any if __name__ == '__main__'
directive.
Just pass it to the python interpreter when executing your update script, it will pass all the way through
So am I correct to say that the whole example of how to enable passing of this in an update script is missing?
It will automatically be passed through and no changes are required to an update script. If you do:
python update.py --verbose
any python function/method called as a result of that can have access to sys.argv
Ok, so these options are for a very specific workflow of writing that subclass in a Python script and running it from command line. I wonder if we can make it possible to use from inside a Python session. I'll have to think about it. Thanks for the clarification!
How is
--verbose
passed intosys.argv
here inrun_command()
? Is it automagically extracted fromcommand
?