[Mono.Options] Add option header support.
[mono.git] / mcs / class / Mono.Options / Documentation / en / examples / bundling.txt
1 $ mono bundling.exe --help
2 Usage: bundling [OPTIONS]+
3 Demo program to show the effects of bundling options and their values
4
5 gcc-like options:
6   -D[=VALUE1:VALUE2]         Predefine a macro with an (optional) value.
7   -d=VALUE1-->VALUE2         Alternate macro syntax.
8   -o=VALUE                   Specify the output file
9
10 tar-like options:
11   -f=VALUE                   The input file
12   -x                         Extract the file
13   -c                         Create the file
14   -t                         List the file
15
16 ls-like optional values:
17       --color[=VALUE]        control whether and when color is used
18
19 other:
20   -h, --help                 show this message and exit
21
22 $ mono bundling.exe -D
23 bundling: Missing macro name for option -D.
24 Try `greet --help' for more information.
25
26 $ mono bundling.exe -DA -DB=C "-dD-->E" "-dF=>G" -d "H=>I" -cf input --color -ooutput
27 Macros:
28         A=<null>
29         B=C
30         D=E
31         F=G
32         H=I
33 Options:
34          Input File: input
35         Ouptut File: output
36              Create: True
37             Extract: False
38                List: False
39               Color: <null>
40
41 $ mono bundling.exe -cfv input
42 def handler: color=; arg=input
43 Macros:
44 Options:
45          Input File: v
46         Ouptut File: 
47              Create: True
48             Extract: False
49                List: False
50               Color: <null>
51
52 $ mono bundling.exe -xctf input
53 Macros:
54 Options:
55          Input File: input
56         Ouptut File: 
57              Create: True
58             Extract: True
59                List: True
60               Color: <null>
61
62 $ mono bundling.exe --color=auto -o output -finput
63 Macros:
64 Options:
65          Input File: input
66         Ouptut File: output
67              Create: False
68             Extract: False
69                List: False
70               Color: auto
71
72 $ mono bundling.exe --color=on A B --color=off C D
73 def handler: color=on; arg=A
74 def handler: color=on; arg=B
75 def handler: color=off; arg=C
76 def handler: color=off; arg=D
77 Macros:
78 Options:
79          Input File: 
80         Ouptut File: 
81              Create: False
82             Extract: False
83                List: False
84               Color: off