bin/eyedrops in pupil-0.6.2 vs bin/eyedrops in pupil-0.6.3
- old
+ new
@@ -5,20 +5,13 @@
require "pupil/keygen"
require "yaml"
require "fileutils"
require "readline"
require "optparse"
-require "pp"
-class String
- def undent
- gsub /^.{#{slice(/^ +/).length}}/, ''
- end
-end
-
class Eyedrops
- VERSION = "1.0"
+ VERSION = "1.1"
end
class Credentials
attr_accessor :credentials
@@ -40,24 +33,24 @@
return token
end
end
def display_help
- puts <<-EOD.undent
- Usage: eyedrops [OPTIONS]
-
- eyedrops> twitter #=> Prepared Pupil instance
+ puts <<-EOD
+Usage: eyedrops [OPTIONS]
- options:
- -i, --inspect\tDisplay inspected results
- -a name, --account name\tSign-in account name
- -h, --help\tShow help
- -v, --version\tShow version
+eyedrops> twitter #=> Prepared Pupil instance
- eyedrops commands:
- help\tShow help
- quit\tExit eyedrops
- show-account\tDisplay active account
+options:
+ -i, --inspect\tDisplay inspected results
+ -a name, --account name\tSign-in account name
+ -h, --help\tShow help
+ -v, --version\tShow version
+
+eyedrops commands:
+ help\tShow help
+ quit\tExit eyedrops
+ show-account\tDisplay active account
EOD
end
# Initialize
home_dir = `echo $HOME`.strip
\ No newline at end of file