Use cmdargs library for processing parameters