xref: /haiku/src/apps/debugger/user_interface/cli/commands/CliCommand.cpp (revision f73f5d4c42a01ece688cbb57b5d332cc0f68b2c6)
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 
12 CliCommand::CliCommand(const char* summary, const char* usage)
13 	:
14 	fSummary(summary),
15 	fUsage(usage)
16 {
17 }
18 
19 
20 CliCommand::~CliCommand()
21 {
22 }
23 
24 
25 void
26 CliCommand::PrintUsage(const char* commandName) const
27 {
28 	printf("Usage: ");
29 	printf(Usage(), commandName);
30 	printf("\n");
31 }
32