Display release version in usage text.
This commit is contained in:
parent
c7cc7b469c
commit
bc71caffc3
2 changed files with 3 additions and 1 deletions
3
main.c
3
main.c
|
@ -93,6 +93,7 @@ static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
"\nPcompress Version %f\n\n"
|
||||||
"Usage:\n"
|
"Usage:\n"
|
||||||
"1) To compress a file:\n"
|
"1) To compress a file:\n"
|
||||||
" %s -c <algorithm> [-l <compress level>] [-s <chunk size>] <file>\n"
|
" %s -c <algorithm> [-l <compress level>] [-s <chunk size>] <file>\n"
|
||||||
|
@ -127,7 +128,7 @@ usage(void)
|
||||||
"6) Number of threads can optionally be specified: -t <1 - 256 count>\n"
|
"6) Number of threads can optionally be specified: -t <1 - 256 count>\n"
|
||||||
"7) Pass '-M' to display memory allocator statistics\n"
|
"7) Pass '-M' to display memory allocator statistics\n"
|
||||||
"8) Pass '-C' to display compression statistics\n\n",
|
"8) Pass '-C' to display compression statistics\n\n",
|
||||||
exec_name, exec_name, exec_name, exec_name, exec_name, exec_name);
|
UTILITY_VERSION, exec_name, exec_name, exec_name, exec_name, exec_name, exec_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -39,6 +39,7 @@ extern "C" {
|
||||||
#define MIN_CHUNK 2048
|
#define MIN_CHUNK 2048
|
||||||
#define VERSION 2
|
#define VERSION 2
|
||||||
#define FLAG_DEDUP 1
|
#define FLAG_DEDUP 1
|
||||||
|
#define UTILITY_VERSION 0.5
|
||||||
|
|
||||||
#define COMPRESSED 1
|
#define COMPRESSED 1
|
||||||
#define UNCOMPRESSED 0
|
#define UNCOMPRESSED 0
|
||||||
|
|
Loading…
Reference in a new issue