Refactor: Replace magic numbers with enum cmdarg_flags