Get a dynamic command

@param commandName command name
@return The dynamic command
13511
public ICommandBehavior getCommand(final String commandName) {
        return dynamicCommands.get(commandName.toLowerCase(Locale.ENGLISH)).getBehavior();
    }
276754
public <T> T get(@NonNull String optionName) {
      optionName = optionName.replaceAll("^-+", "");
      NamedOption option = options.get(optionName);

      if (option == null) {
         return Cast.as(unamedOptions.get(optionName));
      }

      if (option.isBoolean()) {
         return option.getValue() == null ? Cast.as(Boolean.FALSE) : option.getValue();
      }

      return option.getValue();
   }
1186736
public IAttributeBehavior getAttribute(final String attributeName) {
        AttributeImpl attr = dynamicAttributes.get(attributeName.toLowerCase(Locale.ENGLISH));
        if (attr == null) return null;
        else return attr.getBehavior();
    }
56163
public alluxio.grpc.Command getCommand() {
    return command_ == null ? alluxio.grpc.Command.getDefaultInstance() : command_;
  }
467602
public static Class<? extends Command<? extends CLIContext>> getCommandClass(
            CLIContext context, String commandName) {
        return context.getHostApplication().getCommands().get(commandName.toLowerCase());
    }
292162
public T getDynamic(String className) {
        for (T t : this)
            if (t.getClass().getName().equals(className))
                return t;
        return null;
    }
393748
@Pure
	public static List<Object> getCommandLineOption(String name) {
		if (commandLineOptions != null && commandLineOptions.containsKey(name)) {
			final List<Object> value = commandLineOptions.get(name);
			return value == null ? Collections.emptyList() : value;
		}
		return Collections.emptyList();
	}
1122023
def get_command(self, ctx, cmd_name):
        """"""
        cmd_name = self.MAP.get(cmd_name, cmd_name)
        return super(AliasedGroup, self).get_command(ctx, cmd_name)
127980
public static CommandImpl getCommand(final String name, final List<CommandImpl> commandList) throws DevFailed {
        CommandImpl result = null;
        for (final CommandImpl command : commandList) {
            if (command.getName().equalsIgnoreCase(name)) {
                result = command;
                break;
            }
        }
        if (result == null) {
            throw DevFailedUtils.newDevFailed(ExceptionMessages.COMMAND_NOT_FOUND, "Command " + name + " not found");
        }
        return result;
    }
925127
def get_command(self, ctx, cmd_name):
        """"""
        path = "%s.%s" % (__name__, cmd_name)
        path = path.replace("-", "_")
        module = importlib.import_module(path)
        return getattr(module, 'cli')
1358438
@Override
	public List<CommandHistoryItem> getCommandHistory(
			int pageNumber,
			String applicationName,
			int itemsPerPage,
			String sortingCriteria,
			String sortingOrder ) {

		if( pageNumber < 1 )
			pageNumber = 1;

		this.logger.fine( "Request: get the history of commands execution (page = " + pageNumber + ")." );
		return this.manager.commandsMngr().getHistory(
				(pageNumber -1) * itemsPerPage,
				itemsPerPage,
				sortingCriteria,
				sortingOrder,
				applicationName );
	}
749515
public function get($name)
    {
        $this->init();

        if (!$this->has($name)) {
            throw new CommandNotFoundException(sprintf('The command "%s" does not exist.', $name));
        }

        $command = $this->commands[$name];

        if ($this->wantHelps) {
            $this->wantHelps = false;

            $helpCommand = $this->get('help');
            $helpCommand->setCommand($command);

            return $helpCommand;
        }

        return $command;
    }
405050
public CustomCommandLine<?> getActiveCustomCommandLine(CommandLine commandLine) {
		for (CustomCommandLine<?> cli : customCommandLines) {
			if (cli.isActive(commandLine)) {
				return cli;
			}
		}
		throw new IllegalStateException("No command-line ran.");
	}
588494
public function getHandlerForCommand($commandName)
    {
        if (!isset($this->commandToKeyMap[$commandName])) {
            throw MissingHandlerException::forCommand($commandName);
        }

        $key = $this->commandToKeyMap[$commandName];

        return $this->container[$key];
    }
334758
private <T extends CommandResultType> T getCommandResult() {
        if (commandResult == null) {
            if (getPayload() instanceof String) {
                this.commandResult = (T) marshaller.unmarshal(new StringSource(getPayload(String.class)));
            }
        }

        return (T) commandResult;
    }
203343
public static String command(Command command) throws Exception {
        // Check Service
        if (!IS_BIND)
            bindService();

        // Return
        try {
            return commandRun(command);
        } catch (Exception e) {
            e.printStackTrace();
            restart();
            throw e;
        }
    }
208588
public alluxio.grpc.MetaCommand getCommand() {
    alluxio.grpc.MetaCommand result = alluxio.grpc.MetaCommand.valueOf(command_);
    return result == null ? alluxio.grpc.MetaCommand.MetaCommand_Unknown : result;
  }