Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions scripts/vtscan/vtcheck
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,23 @@ def parse_args
exit 0
end

if args.include? 'f'
case args.include?

when 'f'
@resource_url = @api_path['file']
@options['file'] = true
end
if args.include? 'u'
@options['file] = true

when 'u'
@resource_url = @api_path['url']
@options['url'] = true
end
if args.include? 'v'
@options['verbose'] = true
end
if args.include? 'p'

when 'v'
@options['verbos'] = true
when 'p'
@options['permalink'] = true
end
if args.include? '?'

when '?'
print_usage
end

Expand Down