Benign Download

lib/rubycritic/cli/options.rb

Script prints a CLI usage screen
SHA-25619b1074b4a63908e05b1dbc7d88564a5440d16a915bfc717d5cfa696f67f9701
MaleculeH(U)

Evidence

Script prints a CLI usage screen lines 14–23
14:7… def parse
15 parser.new do |opts|
16 opts.banner = 'Usage: rubycritic [options] [paths]'
17
18 opts.on('-p', '--path [PATH]', 'Set path where report will be saved (tmp/rubycritic by default)') do |path|
19 @root = path
20 end
21
22 opts.on(
23 …
English function-word token "the" lines 24–28
24:21… :json, :console],
25 'Report smells in the given format:',
26 ' html (default; will open in a browser)',
27 ' json',
28 …
English function-word token "with" lines 49–53
49:12… pts.on('--no-browser', 'Do not open html report with browser') do
50 self.no_browser = true
51 end
52
53 opts.on_tail('-v', '-- …
English function-word token "this" lines 55–61
55:13… d
56
57 opts.on_tail('-h', '--help', 'Show this message') do
58 self.mode = :help
59 end
60 end.parse!(@argv)
61 self …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.