File: args.result

package info (click to toggle)
tarantool 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 85,364 kB
  • sloc: ansic: 513,760; cpp: 69,489; sh: 25,650; python: 19,190; perl: 14,973; makefile: 4,173; yacc: 1,329; sql: 1,074; pascal: 620; ruby: 190; awk: 18; lisp: 7
file content (154 lines) | stat: -rw-r--r-- 3,793 bytes parent folder | download | duplicates (3)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
tarantool --help
Tarantool - a Lua application server

Usage: tarantool script.lua [OPTIONS] [SCRIPT [ARGS]]

All command line options are passed to the interpreted script.
When no script name is provided, the server responds to:
  -h, --help			display this help and exit
  -v, --version			print program version and exit
  -e EXPR			execute string 'EXPR'
  -l NAME			require library 'NAME'
  -i				enter interactive mode after executing 'SCRIPT'
  --				stop handling options
  -				execute stdin and stop handling options

Please visit project home page at http://tarantool.org
to see online documentation, submit bugs or contribute a patch.

tarantool -h
Tarantool - a Lua application server

Usage: tarantool script.lua [OPTIONS] [SCRIPT [ARGS]]

All command line options are passed to the interpreted script.
When no script name is provided, the server responds to:
  -h, --help			display this help and exit
  -v, --version			print program version and exit
  -e EXPR			execute string 'EXPR'
  -l NAME			require library 'NAME'
  -i				enter interactive mode after executing 'SCRIPT'
  --				stop handling options
  -				execute stdin and stop handling options

Please visit project home page at http://tarantool.org
to see online documentation, submit bugs or contribute a patch.

tarantool -Z
tarantool: invalid option

tarantool --no-such-option
tarantool: unrecognized option

tarantool --no-such-option --version
tarantool: unrecognized option

tarantool --version
Tarantool 2.minor.patch-<rev>-<commit>
Target: platform <build>
Build options: flags
Compiler: cc
C_FLAGS: flags
CXX_FLAGS: flags

tarantool -v
Tarantool 2.minor.patch-<rev>-<commit>
Target: platform <build>
Build options: flags
Compiler: cc
C_FLAGS: flags
CXX_FLAGS: flags

tarantool -V
Tarantool 2.minor.patch-<rev>-<commit>
Target: platform <build>
Build options: flags
Compiler: cc
C_FLAGS: flags
CXX_FLAGS: flags

tarantool ${SOURCEDIR}/test/box-py/args.lua
arg[-1] => tarantool
arg[0] => ${SOURCEDIR}/test/box-py/args.lua

tarantool ${SOURCEDIR}/test/box-py/args.lua 1 2 3
arg[-1] => tarantool
arg[0] => ${SOURCEDIR}/test/box-py/args.lua
arg[1] => 1
arg[2] => 2
arg[3] => 3

tarantool ${SOURCEDIR}/test/box-py/args.lua 1 2 3 -V
arg[-1] => tarantool
arg[0] => ${SOURCEDIR}/test/box-py/args.lua
arg[1] => 1
arg[2] => 2
arg[3] => 3
arg[4] => -V

tarantool ${SOURCEDIR}/test/box-py/args.lua -V 1 2 3
arg[-1] => tarantool
arg[0] => ${SOURCEDIR}/test/box-py/args.lua
arg[1] => -V
arg[2] => 1
arg[3] => 2
arg[4] => 3

tarantool ${SOURCEDIR}/test/box-py/args.lua 1 2 3 --help
arg[-1] => tarantool
arg[0] => ${SOURCEDIR}/test/box-py/args.lua
arg[1] => 1
arg[2] => 2
arg[3] => 3
arg[4] => --help

tarantool ${SOURCEDIR}/test/box-py/args.lua --help 1 2 3
arg[-1] => tarantool
arg[0] => ${SOURCEDIR}/test/box-py/args.lua
arg[1] => --help
arg[2] => 1
arg[3] => 2
arg[4] => 3

tarantool -V ${SOURCEDIR}/test/box-py/args.lua 1 2 3
Tarantool 2.minor.patch-<rev>-<commit>
Target: platform <build>
Build options: flags
Compiler: cc
C_FLAGS: flags
CXX_FLAGS: flags

tarantool -e print(1) os.exit() print(2)
1

tarantool -e print(1) -e os.exit() -e print(1) -e os.exit() -e print(1)
1

tarantool -e print('Hello') ${SOURCEDIR}/test/box-py/args.lua 1 2 3
Hello
arg[-1] => tarantool
arg[0] => ${SOURCEDIR}/test/box-py/args.lua
arg[1] => 1
arg[2] => 2
arg[3] => 3

tarantool -e a = 10 -e print(a) ${SOURCEDIR}/test/box-py/args.lua 1 2 3 --help
10
arg[-1] => tarantool
arg[0] => ${SOURCEDIR}/test/box-py/args.lua
arg[1] => 1
arg[2] => 2
arg[3] => 3
arg[4] => --help

tarantool -e print(rawget(_G, 'log') == nil) -e io.flush() -l log -e print(log.info('Hello')) ${SOURCEDIR}/test/box-py/args.lua 1 2 3 --help
true
Hello

arg[-1] => tarantool
arg[0] => ${SOURCEDIR}/test/box-py/args.lua
arg[1] => 1
arg[2] => 2
arg[3] => 3
arg[4] => --help