Class: Bocadillo::Usage

Inherits:
Object
  • Object
show all
Defined in:
lib/bocadillo/usage.rb

Class Method Summary collapse

Class Method Details



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/bocadillo/usage.rb', line 2

def self.print
	puts <<END
Usage:
	bocadillo <string> [<separator> [<child preamble> [<child separator> [<child terminator>]]]]

Examples:
	bocadillo 'alba,albero,albino'
	# => alb(a|ero|ino)

	bocadillo 'alba:albero:albino' ':' '[' ',' ']'
	# => alb[a,ero,ino]

END
end