1/* 2 * Copyright 2012, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7#include "CliCommand.h" 8 9#include <stdio.h> 10 11 12CliCommand::CliCommand(const char* summary, const char* usage) 13 : 14 fSummary(summary), 15 fUsage(usage) 16{ 17} 18 19 20CliCommand::~CliCommand() 21{ 22} 23 24 25void 26CliCommand::PrintUsage(const char* commandName) const 27{ 28 printf("Usage: "); 29 printf(Usage(), commandName); 30 printf("\n"); 31} 32