Lines Matching refs:alias
22 # For recognizing "negative alias" options, eg. "quiet=!verbose"
37 --quiet is the "negative alias" of --verbose, then "--quiet"
58 # 'alias' records (duh) alias options; {'foo': 'bar'} means
59 # --foo is an alias for --bar
60 self.alias = {}
112 for (alias, opt) in aliases.items():
113 if alias not in self.option_index:
115 "option '%s' not defined") % (what, alias, alias))
118 "aliased option '%s' not defined") % (what, alias, opt))
120 def set_aliases(self, alias):
122 self._check_alias_dict(alias, "alias")
123 self.alias = alias
130 self._check_alias_dict(negative_alias, "negative alias")
172 # Is option is a "negative alias" for some other option (eg.
178 "invalid negative alias '%s': "
185 # If this is an alias option, make sure its "takes arg" flag is
187 alias_to = self.alias.get(long)
191 "invalid alias '%s': inconsistent with "
244 alias = self.alias.get(opt)
245 if alias:
246 opt = alias
250 alias = self.negative_alias.get(opt)
251 if alias:
252 opt = alias