I’m writing an command line application which will take a lot of input from the user. Example input should contain:
- Connection strings to RDB/Cube
- parameters used for queries
- queries
- XPath stings
- Some boolean valued parameters
- paths for WebService items
I’m wondering what is the best approach to pass them all to the program. I’m sure that queries, XPaths and parameters should be stored in a file, but should they be contained in a single file? What about the rest, is it better to pass them as a command line parameters or should I prepare a file for them as well?
What is the best/most common approach for this kind of situation?
When i did this kind of application I started from usual command line parameters and added ability to load parameter values from file like:
So you can let user to decide where to store different parameters.