| 114 | } |
| 115 | |
| 116 | static 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 | |
| 129 | static int version (int argc, const char** argv) |
| 130 | { |
no test coverage detected