diff options
Diffstat (limited to 'src/cmd/compress.cpp')
-rw-r--r-- | src/cmd/compress.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/compress.cpp b/src/cmd/compress.cpp index ca5161644..35f74f8af 100644 --- a/src/cmd/compress.cpp +++ b/src/cmd/compress.cpp @@ -83,6 +83,12 @@ void parse_extension(const std::string& in_file, int uncompress(int argc, char* argv[]) { + if(argc != 2) + { + std::cout << "Usage: " << argv[0] << " <file>" << std::endl; + return 1; + } + const std::string in_file = argv[1]; std::ifstream in(in_file); |