Polish the obsolete_URI script, so it can be used to scan an active workspace, not just a released directory.
This commit is contained in:
parent
354fe56def
commit
a7e53d9ac0
6 changed files with 96 additions and 18 deletions
|
@ -80,8 +80,8 @@ class ObsoleteUriChecker
|
|||
# ------------------------------------------------------------------------------------
|
||||
|
||||
def initialize(args)
|
||||
@report = Report.new(args)
|
||||
@directory_root, @obsolete_uris, @known_exceptions, @complete = parse_arguments(args)
|
||||
@report = Report.new(args, @directory_root)
|
||||
rescue UsageError => e
|
||||
puts "\n----------------\nUsage error\n----------------\n\n#{e}\n\n----------------\n\n"
|
||||
exit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue