Jpp 21.0.0-rc.1-88-g0130508c4
the software that should make you happy
Loading...
Searching...
No Matches
km3net-dataformat-version-main.cc File Reference
#include "km3net-dataformat/version.hh"
#include <iostream>
#include <string>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 78 of file km3net-dataformat-version-main.cc.

78 {
79 if (argc == 1) {
80 printText();
81 return 0;
82 }
83
84 if (argc == 2 && std::string(argv[1]) == "--json") {
85 printJson();
86 return 0;
87 }
88
89 std::cerr << "usage: " << argv[0] << " [--json]\n";
90
91 return 1;
92}