summaryrefslogtreecommitdiffstats
path: root/framework/src/test/resources/sample-cmd-test-help.txt
blob: bc1305cb09099687b2972327f7e430620422abef (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
usage: oclip sample-test

Oclip sample command to test the command features

Oclip service: sample v1

Options:
[-h | --help] [-v | --version] [-d | --debug]
[-f | --format] [-s | --long] [-t | --no-title]
[-a | --no-auth] [-b | --bool] [-x | --secure]
[-c | --string-param] [-y | --yaml-param] [-j | --json-param]
[-l | --long-opt] [-r | --url] [-z | --env]
<positional-args>
where,
-h | --help             Oclip command help message. It is of type STRING.
                        By default, it is false.
-v | --version          Oclip command service version. It is of type
                        STRING. By default, it is false.
-d | --debug            Enable debug output. It is of type BOOL. By
                        default, it is false.
-f | --format           Output formats, supported formats such as table,
                        csv, json, yaml. It is of type STRING. By default,
                        it is table.
-s | --long             whether to print all attributes or only short
                        attributes. It is of type BOOL. By default, it is
                        false.
-t | --no-title         whether to print title or not. It is of type BOOL.
                        By default, it is false.
-b | --bool             Oclip boolean param, by default its always false.
                        It is of type BOOL. It is optional. By default, it
                        is false.
-x | --secure           Oclip secure param such as password. It is of
                        type STRING. Secured.
-c | --string-param     Oclip string param. It is of type STRING.
-y | --yaml-param       Oclip yaml file location param. It is of type
                        JSON. It's recommended to input the complete path
                        of the file, which is having the value for it.
-j | --json-param       Oclip json file location param. It is of type
                        JSON. It's recommended to input the complete path
                        of the file, which is having the value for it.
-l | --long-opt         Oclip long param. It is of type LONG. By default,
                        it is 10.
-r | --url              Oclip url param. It is of type URL. By default,
                        it is http://localhost:8082/file.txt.
-z | --env              Oclip env param. It is of type STRING. By
                        default, it is read from environment variable
                        ENV_VAR.
positional-args         Oclip positional args, if no short option and no
                        long option given for it. It is of type STRING. By
                        default, it is http://localhost:8082/file.txt.


Results:
output-1  Oclip output attribute marked in short and is of
          type STRING. It is secured.
output-2  Oclip output attribute marked in long and is of
          type STRING.


Error:
On error, it prints <HTTP STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>