This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env ruby | ||
# encoding: utf-8 | ||
|
||
require 'json' | ||
require 'optparse' | ||
|
||
# | ||
# this file was removed due to DMCA report | ||
# following action was taken | ||
# https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository | ||
# | ||
|
||
OptionParser.new do |opts| | ||
opts.banner = "Usage: scan.features.rb [options]" | ||
|
||
opts.on("-s", "--src-dir PATH", "") do |v| | ||
# empty block | ||
end | ||
|
||
opts.on("-f", "--features-file PATH", "") do |v| | ||
# empty block | ||
end | ||
|
||
opts.on("-o", "--output PATH", "Output to json file (required)") do |v| | ||
EXPORT_JSON_FILE = File.expand_path(v) | ||
end | ||
|
||
opts.on("-h", "--help", "Prints this help") do | ||
puts opts | ||
exit | ||
end | ||
end | ||
.parse! | ||
|
||
File.open(EXPORT_JSON_FILE, 'w') { |file| file.write("{}") } |