This is my first post on this site, so I don't know the rules. Please correct me if this gets to the wrong folks...etc.

PROBLEM: Many of the apps that I am writing need to be able to run 2 ways: They might be invoked from the command-line with parameters so that they do not show UI, but accomplish some task; OR they might be double-clicked, in which case they show a UI (so that the User can configure settings for the app...etc.)....