3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/rft/options.rb', line 3
def self.help
puts "HELP. Use rft.rb with following commands: "
puts " "
puts "### Options Commands with 1 parameter ###"
puts "$ ruby RFT/rft.rb -help # displays this info"
puts "$ ruby RFT/rft.rb -folder # displays current working path"
puts " "
puts "### Options Commands with 2 parameters ###"
puts "$ ruby RFT/rft.rb filename.format -props # displays file properties"
puts " "
puts "### Access Commands with 1 paramater ###"
puts "$ ruby RFT/rft.rb filename.format # reads filename content"
puts "$ ruby RFT/rft.rb --All # reads all files contents"
puts "$ ruby RFT/rft.rb -list # lists all text-like files"
puts " "
puts "### Access Commands with 3 paramaters ###"
puts "$ ruby RFT/rft.rb filename.format -find phrase # searches for phrase in file and, if spoted, displays the lines"
puts "$ ruby RFT/rft.rb --All -find phrase # searches for phrase in all textlike files and, if spoted, displays the lines"
puts "$ ruby RFT/rft.rbfilename.format -uniqs uniqsname.format # creates new file with uniq phrases only"
puts " "
puts "### Mutation Commands with 2 parameters ###"
puts "$ ruby RFT/rft.rb filename.format -owtxt # overwrites text in file content by user input"
puts "$ ruby RFT/rft.rb filename.format -apptxt # appends at the end of text in file content with user input"
puts "$ ruby RFT/rft.rb filename.format -clr # clears the file content, and makes it a blank file"
puts "$ ruby RFT/rft.rb filename.format -del # deletes the file"
puts "$ ruby RFT/rft.rb --All -del # deletes all textlike files"
puts "$ ruby RFT/rft.rb filename.format -new # creates new file by given filename.format" + '\n'
puts " "
puts "### Mutation Commands with 3 parameters ###"
puts "$ ruby RFT/rft.rb filename.format -rename renamed.format # renames the file, can also change the format"
puts "$ ruby RFT/rft.rb filename.format -rename renamed.format # renames the file, can also change the format"
puts "$ ruby RFT/rft.rb filename.format -remove phrase # removes phrase from file"
puts "$ ruby RFT/rft.rb --All -remove phrase # removes phrase from textlike files"
puts "$ ruby RFT/rft.rb filename.format -copy new_file.format # copies all content from file to newly created new_file"
puts " "
puts "### Mutation Commands with 4 parameters ###"
puts "$ ruby RFT/rft.rb filename.format -rep from_phrase to_phrase # find/replace words in file by provided from_/to_ phrases"
puts "$ ruby RFT/rft.rb --All -rep from_phrase to_phrase # find/replace words in all textlike files by provided from_/to_ phrases"
end
|