I am trying to create a Python command-line app, which supports both interactive (currently using Cmd) and inline modes (like Python's python -c). Is there a good way to do it without duplicating the 'line parsing' code?
Python application with both interactive and inline mode
146 views Asked by Elad Weiss At
1
Use the
Cmd.onecmdmethod: