Anything related to parsing command lines should be done in the cli.py file. Once you reach this file it should just be passing variables so I think you should make the changes to remove cmd_line() function now.