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
|
# File 'lib/neo4j/spatial/cmd.rb', line 7
def self.args
@args=[]
while( arg = ARGV.shift ) do
if arg =~ /\-d/
$delete = true
elsif arg =~ /\-D/
path = ARGV.shift
if path && path.length > 0
Neo4j::Config[:storage_path] = path
else
puts "Invalid database location: #{path}"
end
elsif arg =~ /\-E/
$export = ARGV.shift
elsif arg =~ /\-M/
$limit = Math.max(ARGV.shift.to_i, 10)
elsif arg =~ /\-F/
$format = ARGV.shift
elsif arg =~ /\-L/
$list = ARGV.shift
elsif arg =~ /\-l/
$list = 'layers'
elsif arg =~ /\-h/
$help = true
else
@args << arg
end
end
@args
end
|