Lines Matching full:alias
26 # For recognizing "negative alias" options, eg. "quiet=!verbose"
41 --quiet is the "negative alias" of --verbose, then "--quiet"
63 # 'alias' records (duh) alias options; {'foo': 'bar'} means
64 # --foo is an alias for --bar
65 self.alias = {}
122 for (alias, opt) in aliases.items():
123 if alias not in self.option_index:
126 "option '%s' not defined") % (what, alias, alias)
130 "aliased option '%s' not defined") % (what, alias, opt)
132 def set_aliases (self, alias):
134 self._check_alias_dict(alias, "alias")
135 self.alias = alias
142 self._check_alias_dict(negative_alias, "negative alias")
188 # Is option is a "negative alias" for some other option (eg.
194 ("invalid negative alias '%s': "
204 # If this is an alias option, make sure its "takes arg" flag is
206 alias_to = self.alias.get(long)
210 ("invalid alias '%s': inconsistent with "
268 alias = self.alias.get(opt)
269 if alias:
270 opt = alias
274 alias = self.negative_alias.get(opt)
275 if alias:
276 opt = alias