Lines Matching full:name

45 # Name of the program, normally 'idf.py'.
132 def __getattr__(self, name): argument
133 if name in self:
134 return self[name]
136 raise AttributeError("'PropertyDict' object has no attribute '%s'" % name)
138 def __setattr__(self, name, value): argument
139 self[name] = value
141 def __delattr__(self, name): argument
142 if name in self:
143 del self[name]
145 raise AttributeError("'PropertyDict' object has no attribute '%s'" % name)
197 … if isinstance(option, Option) and option.deprecated and ctx.params[option.name] != default:
200 … raise FatalError('Error: %s' % deprecation.full_message('Option "%s"' % option.name))
202 … print_warning('Warning: %s' % deprecation.full_message('Option "%s"' % option.name))
205 def __init__(self, callback, name, aliases, dependencies, order_dependencies, action_args): argument
207 self.name = name
217 self.callback(self.name, context, global_args, **action_args)
222 name=None, argument
229 super(Action, self).__init__(name, **kwargs)
231 self.name = self.name or self.callback.__name__
270 name=self.name,
282 message = deprecation.full_message('Command "%s"' % self.name)
411 for name, action in all_actions.get('actions', {}).items():
421 self._actions[name] = Action(name=name, **action)
422 for alias in [name] + action.get('aliases', []):
423 self.commands_with_aliases[alias] = name
426 self._actions[name].params.append(Argument(**argument_args))
430 self._actions[name].params.append(option)
438 … ' "shared" options can be declared only on global level' % (option.name, name))
441 if option.scope.is_global and option.name not in [o.name for o in self.params]:
444 self._actions[name].params.append(option)
447 return sorted(filter(lambda name: not self._actions[name].hidden, self._actions))
449 def get_command(self, ctx, name): argument
450 if name in self.commands_with_aliases:
451 return self._actions.get(self.commands_with_aliases.get(name))
455 return Action(name=name, callback=self._actions.get('fallback').unwrapped_callback)
537 [item for item, count in Counter(task.name for task in tasks).items() if count > 1])
548 if task.name == 'help':
554 option = next((o for o in ctx.command.params if o.name == key), None)
564 … 'This option can appear at most once in the command line.' % (key, task.name))
586 tasks_dict = dict([(t.name, t) for t in tasks])
601 (task.name, dep))
606 … option = next((o for o in ctx.command.params if o.name == key), None)
624 if task.name not in tasks_to_run.keys():
625 tasks_to_run.update([(task.name, task)])
631 name_with_aliases = task.name
654 # Set `complete_var` to not existing environment variable name to prevent early cmd completion
675 for _finder, name, _ispkg in sorted(iter_modules([directory])):
676 if name.endswith('_ext'):
677 extensions.append((name, import_module(name)))
690 for name, extension in extensions:
694 print_warning('WARNING: Cannot load idf.py extension "%s"' % name)
729 # the argument `prog_name` must contain name of the file - not the absolute path to it!
740 return codecs.lookup(locale.getpreferredencoding()).name != 'ascii'
798 elif os.name == 'posix' and not _valid_unicode_config():