def run_before_save_methods(self):
		self.set_title_field()
		self.reset_seen()

		if self.flags.ignore_validate:
			return

		if self._action=="save":
			self.run_method("validate")
			self.run_method("before_save")
		elif self._action=="submit":
			self.run_method("validate")
			self.run_method("before_submit")
		elif self._action=="cancel":
			self.run_method("before_cancel")
		elif self._action=="update_after_submit":
			self.run_method("before_update_after_submit")
Set the negative aliases for this option parser.
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.run_before_save_methods--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/distutils/fancy_getopt.py/FancyGetopt.set_negative_aliases