lib/slim_lint/options.rb in slim_lint-0.20.2 vs lib/slim_lint/options.rb in slim_lint-0.21.0
- old
+ new
@@ -71,9 +71,14 @@
parser.on('-e', '--exclude file,...', Array,
'List of file names to exclude') do |files|
@options[:excluded_files] = files
end
+
+ parser.on('--stdin-file-path file', String,
+ 'Pipe source from STDIN, using file in offense reports.') do |file|
+ @options[:stdin_file_path] = file
+ end
end
# Register informational flags.
def add_info_options(parser)
parser.on('--show-linters', 'Display available linters') do