usage sample<options>

Hi,
forgive me if the question i am asking is too simple or obvious, i am relatively new to programming. i am trying to use an open source library found by google search. the readme file tells to write make on commandline, as a result i got an exe file sample, but now i am trying to chk the output and the usage is:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
USAGE
Usage: sample <options>

options:
  -c : Encode input file to output file.
  -d : Decode input file to output file.
  -k [1-7] : Length of binary portion.
  -i <filename> : Name of input file.
  -o <filename> : Name of output file.
  -h|?  : Print out command line options.

-c      Compress the specified input file (see -i) using the Lempel-Ziv-Welch
        encoding algorithm.  Results are written to the specified output file
        (see -o).

-d      Decompress the specified input file (see -i) using the Lempel-Ziv-Welch
        decoding algorithm.  Results are written to the specified output file
        (see -o).  Only files compressed by this program may be decompressed.

-k [1-7]        The number of bits in the binary portion of a Rice encoded
                value.

-i <filename>   The name of the input file.  There is no valid usage of this
                program without a specified input file.

-o <filename>   The name of the output file.  If no file is specified, stdout
                will be used.  NOTE: Sending compressed output to stdout may
                produce undesirable results.


i think i sholud give the command ./sample -c -4 -input.txt -output.txt
but i am getting an error. the error gives description of usuage, which means i ma doing something wrong.
any help is appreciated.additionally, if anyone can refer me to some document describing how to give such commands i will be grateful.
Did you try:

./sample -c -k 4 -i input.txt -o output.txt

Just a bit of an educated guess.

Edit: Or this:

./sample -c -k4 -i input.txt -o output.txt
Last edited on
Topic archived. No new replies allowed.