-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArguments.xml
More file actions
94 lines (90 loc) · 3.53 KB
/
Arguments.xml
File metadata and controls
94 lines (90 loc) · 3.53 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
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
<Arguments>
<Simple Name="argument" Mandatory="true" >
<Alias>arg</Alias>
<Description>depending on the context could be an absolute path, or a relative path, or a file name, or a regex.</Description>
</Simple>
<Simple Name="DestinationRoot" ValueType="String" Mandatory="true" >
<Alias>dest</Alias>
<Alias>destination</Alias>
</Simple>
<Simple Name="SourceRoot" ValueType="String" Mandatory="false" >
<Alias>srcRoot</Alias>
<Description>Optional value that defines what portion of the base folder should be treated as the source root; the portion of the tree below this root will be replicated as-is within the DestinationRoot; defaults to base dir</Description>
</Simple>
<Simple Name="BaseDirectory" ValueType="FileSystemPath">
<Alias>base</Alias>
<Description>directory to use as starting point. Defaults to current directory</Description>
</Simple>
<Flag Name="NameRegex">
<Alias>nx</Alias>
<Description>argument is name-regex; each entry's name should be checked against it</Description>
<Description>Specify this flag to treat the argument as a name-regex: only the NAME of each will be checked against it, not the whole path</Description>
</Flag>
<Flag Name="PathRegex">
<Alias>px</Alias>
<Description>Specify this flag to treat the argument as a path-regex: the whole path of each entry will be checked against it</Description>
</Flag>
<Flag Name="recursive">
<Alias>r</Alias>
<Description>Search AND copy recursively from base directory</Description>
</Flag>
<Flag Name="RecursiveSelection">
<Alias>rs</Alias>
<Description>search recursively from base directory</Description>
</Flag>
<Flag Name="RecursiveCopy">
<Alias>rc</Alias>
<Description>copy recursively from selected dirs</Description>
</Flag>
<Flag Name="file">
<Alias>FileOnly</Alias>
<Alias>f</Alias>
<Description>only select files</Description>
</Flag>
<Flag Name="dir">
<Alias>DirectoryOnly</Alias>
<Alias>DirOnly</Alias>
<Alias>d</Alias>
<Description>only select directories</Description>
</Flag>
<Flag Name="all">
<Alias>df</Alias>
<Alias>fd</Alias>
<Alias>SelectAll</Alias>
<Description>select files and directories (default)</Description>
</Flag>
<Flag Name="flatten">
<Alias>flat</Alias>
<Alias>fl</Alias>
<Description>Flatten the hierarchy</Description>
</Flag>
<Flag Name="explain">
<Alias>ex</Alias>
<Alias>e</Alias>
<Description>Print a description of the arguments received, for debugging purposes</Description>
</Flag>
<Flag Name="debug">
<Description>Attempt to launch the default debugger before running</Description>
</Flag>
<Flag Name="watch">
<Alias>w</Alias>
<Description>Create a watch for modified files in the 'base' directory and copy them in the target ('argument') directory. The process will keep on running until killed externally or by using the Ctrl+C shortcut.</Description>
</Flag>
<Flag Name="verbose">
<Alias>v</Alias>
<Description>Prints a line to report each successfully copied file</Description>
</Flag>
<Flag Name="help">
<Alias>h</Alias>
<Description>Print a short guide. if this argument is specified, all other arguments (beside -debug and -e) will be ignored and the program will terminate</Description>
</Flag>
<Constraint Type="OneOrLess">
<Argument>f</Argument>
<Argument>d</Argument>
<Argument>fd</Argument>
</Constraint>
<Constraint Type="OneOrLess">
<Argument>nx</Argument>
<Argument>px</Argument>
</Constraint>
</Arguments>