Added add_common_args() method to simplify arg processing.