Page MenuHomePhabricator

Maintenance class should provide constants for boolean parameters
Open, Needs TriagePublic

Description

We often write code like below. I think a better option would be to have constants such as PARAM_OPTIONAL, PARAM_REQUIRED, PARAM_HASARG etc.

		$this->addOption(
			'group',
			'(optional) Group Id being cleared',
			false, /*required*/
			true /*has arg*/
		);