diff --git a/jsonnet.cpp b/jsonnet.cpp index 6c0c44280..aa725b287 100644 --- a/jsonnet.cpp +++ b/jsonnet.cpp @@ -180,6 +180,11 @@ long strtol_check(const std::string &str) int main(int argc, const char **argv) { + if (1 == argc) { + usage(std::cout); + return EXIT_SUCCESS; + } + std::vector jpaths; jpaths.emplace_back("/usr/share/" JSONNET_VERSION "/"); jpaths.emplace_back("/usr/local/share/" JSONNET_VERSION "/");