printHelp(options);
} else if(line.hasOption(APPLICATION_KEY_OPTION)) {
final String keyValue = line.getOptionValue(APPLICATION_KEY_OPTION);
final StackExchangeApiClientFactory factory = StackExchangeApiClientFactory.newInstance(keyValue);
final StackExchangeApiClient client = factory.createStackExchangeApiClient();
if(line.hasOption(ID_OPTION)) {
String idValue = line.getOptionValue(ID_OPTION);
List<Question> question = client.getQuestions(Long.valueOf(idValue));
printResult(question.get(0));
} else {
List<Question> questions = client.getQuestions(EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS));
for (Question question : questions) {
printResult(question);
}
List<PostTimeline> questionTimeline = client.getQuestionsTimeline(2420689L);
for (PostTimeline timeline : questionTimeline) {
printResult(timeline);
}
}
} else {