lib/ej/commands.rb in ej-0.1.1 vs lib/ej/commands.rb in ej-0.1.2

- old
+ new

@@ -67,11 +67,19 @@ option :source, type: :string, aliases: '--source', required: true, desc: 'source host' option :dest, type: :string, aliases: '--dest', required: true, desc: 'dest host' option :query, type: :string, aliases: '-q', default: nil, desc: 'query' option :per, type: :numeric, default: nil, desc: 'per' option :proc_num, type: :numeric, default: 1, desc: 'proc num for multi thread' + option :from, type: :numeric, default: 0, desc: 'from' def copy - @core.copy(options['source'], options['dest'], options['query'], options['per'], options['proc_num']) + @core.copy( + options['source'], + options['dest'], + options['query'], + options['per'], + options['proc_num'], + options['from'] + ) end desc 'dump', 'dump index' option :query, type: :string, aliases: '-q', default: nil, desc: 'query' option :per, type: :numeric, default: nil, desc: 'per'