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:
j2blake 2013-10-31 17:11:11 -04:00
parent 354fe56def
commit a7e53d9ac0
6 changed files with 96 additions and 18 deletions

View file

@ -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