Revision 5eeb0a75

View differences:

src/cli/command_parser.rb
17 17
require 'optparse'
18 18
require 'pp'
19 19

  
20
class String
21
    def unindent(spaces=nil)
22
        unless spaces
23
            m = self.match(/^(\s*)/)
24
            spaces = m[1].size
25
        end
26

  
27
        self.gsub!(/^ {#{spaces}}/, '')
28
    end
29
end
30

  
20 31
module CommandParser
21 32
    OPTIONS = [
22 33
        VERBOSE={

Also available in: Unified diff