Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
* Bumped version to 1.0.2
* Updated copyright notice
* Added missing --version option in cli parser
  • Loading branch information
LeadRDRK committed Jul 8, 2021
1 parent c30cc11 commit e795169
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/zpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <fstream>
#include <string>
#include <vector>
#define ZPACK_VERSION "1.0.1"
#define ZPACK_VERSION "1.0.2"
#define ZPACK_FILE_VERSION 0

// forward declarations
Expand Down
24 changes: 13 additions & 11 deletions programs/zpack-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,18 @@ enum {
};

static std::unordered_map<std::string, int> argMap = {
{"-c", ARG_CREATE},
{"--create", ARG_CREATE},
{"-u", ARG_UNPACK},
{"--unpack", ARG_UNPACK},
{"-o", ARG_OUTPUT},
{"--output", ARG_OUTPUT},
{"-l", ARG_LIST},
{"--list", ARG_LIST},
{"-f", ARG_FAST},
{"--fast", ARG_FAST},
{"-c", ARG_CREATE},
{"--create", ARG_CREATE},
{"-u", ARG_UNPACK},
{"--unpack", ARG_UNPACK},
{"-o", ARG_OUTPUT},
{"--output", ARG_OUTPUT},
{"-l", ARG_LIST},
{"--list", ARG_LIST},
{"-f", ARG_FAST},
{"--fast", ARG_FAST},
{"-v", ARG_VERSION},
{"--version", ARG_VERSION},
};

int main(int argc, char **argv)
Expand Down Expand Up @@ -410,7 +412,7 @@ int main(int argc, char **argv)
case ARG_VERSION:
std::cout <<
PROGRAM_NAME "\n"
"Copyright (c) 2021 LeadRDRK. Licensed under the BSD 3-Clause license.\n";
"Copyright (c) 2021 LeadRDRK. Licensed under the zlib license.\n";
return 0;
}
}
Expand Down

0 comments on commit e795169

Please sign in to comment.