The situation right now is that I have a gui app, which loads a file via a text box and a button and does stuff with the contents.
I would like to modify the app so that it also allows to be called with a parameter (the file name), and then it does the same stuff with the contents, but without loading the GUI.
What do you guys think would be the preferred path?
1) tricks with the main method
static void Main(string args)
(vs the original)
static void Main()
2) Move all code to a library, make 2 executables, one for cli and one for gui
I hope I explain myself well enough.
All suggestions are more than welcome.