Instead of having a single executable with different behavior depending on the name, either: * Use a command-line option to choose the action. * Have two separate executables that link in shared code.