I often find myself wondering how people handle program arguments when they are developing with Emacs. Let's say we have a Python script test.py
and launching it requires supplying arguments, e.g. --fname example.txt
. Most major modes feature a generic function like python-shell-send-buffer
that effectively launches the script without supplying arguments.
Of course one solution would be to adapt test.py
to not take any arguments by hard-coding default arguments but this can hardly be considered good practice.
How is this issue typically handled? (not necessarily Python-specific)