This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 227
Expand file tree
/
Copy pathcommandArguments.lcdoc
More file actions
60 lines (42 loc) · 1.45 KB
/
commandArguments.lcdoc
File metadata and controls
60 lines (42 loc) · 1.45 KB
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
Name: commandArguments
Type: function
Syntax: the commandArguments
Syntax: commandArguments(<index>)
Syntax: the commandArguments of <index>
Summary:
If no index is given, returns a 1-based, numeric array containing all
the arguments given to the command. If an index is given, returns the
argument corresponding to the index (1 being the first argument).
Introduced: 7.1.0
OS: mac, windows, linux
Platforms: desktop, server
Security: none
Example:
local tArgs
put the commandArguments into tArgs
put the keys of tArgs
Example:
repeat for each element tArgument in the commandArguments
if tArgument is "-v" then
put true into tVerbose
end if
end repeat
Example:
put commandArguments(1)
Parameters:
index (integer):
An integer greater than 0.
If the index is greater than the number of arguments, then
commandArguments returns empty.
Returns:
Returns either a numeric array with all the commandline arguments if no
<index> is given, or the argument at the <index> specified.
Description:
Returns a 1-based numeric array containing the commandline arguments
With no index given, the <commandArguments> function returns an 1-based,
numeric array containing the arguments given at the launch of the
application. With an index given, it returns the commandline argument at
this index The list only exists on desktop standalones applications and
server scripts. On mobile platform or in the IDE, the <commandArguments>
returns empty.
References: $ (keyword)