dds-commander: moved all command line related routines to a dedicated file