c++ - Google Native Client Visual Studio Add-in: Webserver fails to start because arguments to httpd.py are invalid -


i have application turned simple native client app year ago, , i've been trying running again. however, when try run it, or of example vs projects, web server fails start, giving me usage hints httpd.py, , saying "httpd.py: error: unrecognized arguments: 5103".

i wasn't able find on nacl guide or on net. troubleshoot issue if see script starts webserver, have no idea stored.

the script start server 'nacl_sdk\pepper_43\tools\httpd.py'. problem port argument being formated incorrectly.

the expected format is:

httpd.py [-h] [-c serve_dir] [-p port] [--no-dir-check] 

but, received arguments formatted add-in is:

['--no_dir_check', '5103'] 

where port prefix missing , should '-p 5103'

for quick fix, add following line

parser.add_argument('args', nargs=argparse.remainder) 

before parse_args(args) in main(args) method in httpd.py.

this keep unknown arguments being parsed , use default value port instead (5103).


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -