protected <T> List<T> extractArgs(final Namespace namespace,
                                      final String dest,
                                      final Function<List<String>, T> argsMapper) {
        final List<List<String>> values = namespace.get(dest);
        if (values != null) {
            return values.stream()
                    .map(argsMapper)
                    .toList();
        } else {
            return Collections.emptyList();
        }
    }
Returns both a short form and long form argument, e.g. -p and --password
stroom-app/src/main/java/stroom/app/commands/AbstractStroomBaseCommand.java