If I want to keep the bulk of my code for processing command line arguments out of main (for organization and more readable code), what would be the best way to do it?
Linux provides program_invocation_name and program_invocation_name_short.
program_invocation_name
program_invocation_name_short