MCPcopy Create free account
hub / github.com/AGWA/git-crypt / help

Function help

git-crypt.cpp:116–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116static int help (int argc, const char** argv)
117{
118 if (argc == 0) {
119 print_usage(std::cout);
120 } else {
121 if (!help_for_command(argv[0], std::cout)) {
122 std::clog << "Error: '" << argv[0] << "' is not a git-crypt command. See 'git-crypt help'." << std::endl;
123 return 1;
124 }
125 }
126 return 0;
127}
128
129static int version (int argc, const char** argv)
130{

Callers 1

mainFunction · 0.85

Calls 2

print_usageFunction · 0.85
help_for_commandFunction · 0.85

Tested by

no test coverage detected