Lines Matching defs:args
335 "def my_command_impl(debugger, args, result, internal_dict):\n";
538 Args args(raw_command_string);
540 if (args.GetArgumentCount() < 2) {
548 auto alias_command = args[0].ref();
559 // Strip the new alias name off 'raw_command_string' (leave it on args,
577 args[0].c_str());
597 // Note that args was initialized with the original command, and has not
600 return HandleAliasingNormalCommand(args, result);
645 bool HandleAliasingNormalCommand(Args &args, CommandReturnObject &result) {
646 size_t argc = args.GetArgumentCount();
655 const std::string alias_command(args[0].ref());
656 const std::string actual_command(args[1].ref());
658 args.Shift(); // Shift the alias command word off the argument vector.
659 args.Shift(); // Shift the old command word off the argument vector.
687 while (cmd_obj->IsMultiwordObject() && !args.empty()) {
688 auto sub_command = args[0].ref();
695 args[0].c_str(), actual_command.c_str());
702 args.Shift(); // Shift the sub_command word off the argument vector.
710 if (!args.empty()) {
717 args.GetCommandString(args_string);
772 bool DoExecute(Args &args, CommandReturnObject &result) override {
776 if (args.empty()) {
782 auto command_name = args[0].ref();
788 args[0].c_str());
798 args[0].c_str());
802 args[0].c_str());
812 args[0].c_str());
815 args[0].c_str());
853 bool DoExecute(Args &args, CommandReturnObject &result) override {
856 if (args.empty()) {
864 auto command_name = args[0].ref();
880 args[0].c_str());