Commits

Richo Healey committed 6455a2f

Format more readably, fold markers

  • Participants
  • Parent commits b9b91bc

Comments (0)

Files changed (1)

File lib/twat/argparse.rb

         options[:action] = :tweet
         options[:account] = :default
         opts.banner = "Usage: twat <tweet>"
-        opts.on('-n', '--account ACCOUNT', 'Tweet from ACCOUNT (or default)') do |acct|
+
+        opts.on('-n', '--account ACCOUNT', 'Tweet from ACCOUNT (or default)') do |acct| #{{{ --account ACCOUNT
           options[:account] = acct.to_sym
-        end
-        opts.on('-a', '--add ACCOUNT', 'Configure and authorise ACCOUNT') do |acct|
+        end # }}}
+        opts.on('-a', '--add ACCOUNT', 'Configure and authorise ACCOUNT') do |acct| #{{{ --add ACCOUNT
           options[:account] = acct.to_sym
           options[:action] = :add
-        end
-        opts.on('-d', '--delete ACCOUNT', 'Delete ACCOUNT') do |acct|
+        end #}}}
+        opts.on('-d', '--delete ACCOUNT', 'Delete ACCOUNT') do |acct| #{{{ --delete ACCOUNT
           options[:account] = acct.to_sym
           options[:action] = :delete
-        end
-        opts.on('-h', '--help', 'Display this screen') do
+        end #}}}
+        opts.on('-h', '--help', 'Display this screen') do #{{{ --help
           puts opts
           exit
-        end
-        opts.on('-v', '--version', 'Display version info') do
+        end #}}}
+        opts.on('-v', '--version', 'Display version info') do #{{{ --version
           options[:action] = :version
-        end
+        end #}}}
       end
+
       @optparser.parse!
       REQUIRED.each do |req|
         usage unless options[req]