From be10cd92c589096ed1382ebe53afc12a57958609 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Thu, 2 Feb 2023 09:01:46 +1300 Subject: [PATCH] feat: No op --no-xinclude option (#35) --- svgcheck/run.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/svgcheck/run.py b/svgcheck/run.py index afd5cfd..16e4e89 100644 --- a/svgcheck/run.py +++ b/svgcheck/run.py @@ -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') @@ -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: