Sha256: 6ab1b54c853c97218c01ad84bc8b978929d35f797eedc0962b53841ce426d615

Contents?: true

Size: 730 Bytes

Versions: 10

Compression:

Stored size: 730 Bytes

Contents

#!/usr/bin/env ruby

lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)

require 'optparse'
require 'evernote_editor'

options = {}
OptionParser.new do |opts|
  opts.banner = "Usage: evned [options] title tag1,tag2"

  options[:edit] = false
  options[:sandbox] = false

  opts.on( '-s', '--sandbox', 'Use the Evernote sandbox server' ) do
    options[:sandbox] = true
  end

  opts.on( '-e', '--edit', 'Search for and edit an existing note by title' ) do
    options[:edit] = true
  end

  opts.on( '-h', '--help', 'Display this screen' ) do
    puts opts
    exit
  end

end.parse!

enved = EvernoteEditor::Editor.new(ARGV, options)
enved.run

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
evernote-editor-0.1.9 bin/evned
evernote-editor-0.1.8 bin/evned
evernote-editor-0.1.7 bin/evned
evernote-editor-0.1.6 bin/evned
evernote-editor-0.1.5 bin/evned
evernote-editor-0.1.4 bin/evned
evernote-editor-0.1.3 bin/evned
evernote-editor-0.1.2 bin/evned
evernote-editor-0.1.1 bin/evned
evernote-editor-0.1.0 bin/evned