Lines Matching +full:- +full:outfile
56 # this works with CPython -- untested on other implementations
65 # (-> https://docs.python.org/3/library/sys.html#sys.stdin)
68 # (such as an `io.StringIO()` - perhaps via
82 '--version', action='version', version=brotli.version)
84 '-i',
85 '--input',
92 '-o',
93 '--output',
96 dest='outfile',
100 '-f',
101 '--force',
106 '-d',
107 '--decompress',
113 '-m',
114 '--mode',
119 '1 for UTF-8 encoded text, or 2 for WOFF 2.0 font data. '
122 '-q',
123 '--quality',
127 help='Controls the compression-speed vs compression-density '
131 '--lgwin',
138 '--lgblock',
155 parser.error('Could not read --infile: %s' % (infile,))
163 if options.outfile:
164 # Caution! If `options.outfile` is a broken symlink, will try to
166 if os.path.exists(options.outfile) and not options.force:
167 parser.error(('Target --outfile=%s already exists, '
168 'but --force was not requested.') % (outfile,))
169 outfile = open(options.outfile, 'wb')
172 outfile = get_binary_stdio('stdout')
185 outfile.write(data)
187 if did_open_outfile: outfile.close()