Skip to content

Commit

Permalink
feat: No op --no-xinclude option (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara authored Feb 1, 2023
1 parent 9655b03 commit be10cd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions svgcheck/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def main():
parser_options = optparse.OptionGroup(optionparser, 'Parser Options')
parser_options.add_option('-N', '--no-network', action='store_true', default=False,
help='don\'t use the network to resolve references')
parser_options.add_option('-X', "--no-xinclude", action='store_true', default=False,
help='This option is deprecated and has no effect.')

parser_options.add_option('-C', '--clear-cache', action='store_true', dest='clear_cache',
default=False, help='purge the cache and exit')
Expand Down Expand Up @@ -79,6 +81,9 @@ def main():
log.quiet = options.quiet and True or False
log.verbose = options.verbose

if options.no_xinclude:
log.warn('--no-xinclude option is deprecated and has no effect.')

if options.cache:
if not os.path.exists(options.cache):
try:
Expand Down

0 comments on commit be10cd9

Please sign in to comment.