help.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_TOOLS_NFDC_HELP_HPP
27 #define NFD_TOOLS_NFDC_HELP_HPP
28 
29 #include "command-parser.hpp"
30 
31 namespace nfd {
32 namespace tools {
33 namespace nfdc {
34 
35 void
36 helpList(std::ostream& os, const CommandParser& parser,
37  ParseMode mode = ParseMode::ONE_SHOT, const std::string& noun = "");
38 
41 int
42 help(ExecuteContext& ctx, const CommandParser& parser, std::ostream& os);
43 
46 void
47 registerHelpCommand(CommandParser& parser);
48 
49 } // namespace nfdc
50 } // namespace tools
51 } // namespace nfd
52 
53 #endif // NFD_TOOLS_NFDC_HELP_HPP
int help(ExecuteContext &ctx, const CommandParser &parser, std::ostream &os)
the 'help' command
Definition: help.cpp:77
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
void registerHelpCommand(CommandParser &parser)
registers 'help' command
Definition: help.cpp:92
ParseMode
indicates which mode is the parser operated in
void helpList(std::ostream &os, const CommandParser &parser, ParseMode mode, const std::string &noun)
Definition: help.cpp:40