Refactor: Replace magic number with enum cmdarg_flags