Lines Matching +full:format +full:- +full:extra +full:- +full:args
9 # http://www.apache.org/licenses/LICENSE-2.0
77 target = next(lines)[:-1] # strip trailing colon
90 type = 'order-only'
109 font-family: sans;
110 font-size: 0.8em;
114 font-weight: normal;
115 font-size: 140%;
116 text-align: center;
120 font-weight: normal;
121 font-size: 120%;
124 font-family: WebKitHack, monospace;
125 white-space: nowrap;
128 -webkit-columns: auto 2;
142 extra = ''
144 extra = ' (%s)' % html_escape(type)
146 (html_escape(input), html_escape(input), extra))
160 cmd = [args.ninja_command, '-f', args.f, '-t', 'query', target]
172 self.send_header('Location', '?' + args.initial_target)
191 self.wfile.write(create_page(page_body).encode('utf-8'))
193 def log_message(self, format, *args): argument
196 parser = argparse.ArgumentParser(prog='ninja -t browse')
197 parser.add_argument('--port', '-p', default=8000, type=int,
199 parser.add_argument('--hostname', '-a', default='localhost', type=str,
201 parser.add_argument('--no-browser', action='store_true',
204 parser.add_argument('--ninja-command', default='ninja',
206 parser.add_argument('-f', default='build.ninja',
215 args = parser.parse_args() variable
216 port = args.port
217 hostname = args.hostname
222 print('Web server running on %s:%d, ctl-C to abort...' % (hostname,port) )
224 if not args.no_browser: