diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-02-25 15:39:54 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-02-25 15:39:54 -0800 |
commit | 5d0ec26faceeefe3ce97393cc28dd23c7b67243b (patch) | |
tree | 2cebb31b0ff652ec720512bace4dd791baaa5cc7 | |
parent | Add a README. (diff) | |
download | backend-5d0ec26faceeefe3ce97393cc28dd23c7b67243b.tar.gz backend-5d0ec26faceeefe3ce97393cc28dd23c7b67243b.tar.bz2 backend-5d0ec26faceeefe3ce97393cc28dd23c7b67243b.zip |
Document that this deletes the index normally.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | ag | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,7 +32,7 @@ $options.argmode = nil op = OptionParser.new do |opts| opts.banner = "Usage: ag <<--index-full|--index-new|--delete-msg|--delete-index|--reindex|--rethread|--info> <--list listname>> <[--file|--msgid|--hash] <maildir/file/hash/messageid>> [options]" - opts.on('--index-full', 'Read the full past archive from Maildir/cur. Needs --list and a Maildir') do + opts.on('--index-full', 'Read the full past archive from Maildir/cur. Does --delete-index by default. Needs --list and a Maildir') do abort 'Can only select one action' if $options.action != nil $options.action = :do_full @@ -155,7 +155,7 @@ Ag::Utils.proc_count = $options.jobs def do_full abort "Wrong argument type: #{$options.argmode.to_s}" unless $options.argmode == :dir begin - Ag::Storage.delete_index($options.name) + Ag::Storage.delete_index($options.name) unless $options.readonly rescue Elasticsearch::Transport::Transport::Errors::NotFound => e $stderr.puts "Index did not exist yet. Creating." if $options.debug end |