[Web-SIG] A more useful command-line wsgiref.simple_server?

Masklinn masklinn at masklinn.net
Fri Mar 30 10:31:52 CEST 2012


On 2012-03-30, at 04:25 , PJ Eby wrote:
> 
>> (B) use --file=c:\app.py or similar to disambiguate what kind of
>> parsing to do - then the typical case can be the importable and users
>> who really want to refer to files explicitly can do so
> 
> This is my preference if we do support both - to explicitly separate
> modules from scripts somehow.

Earlier I proposed a -m switch (inspired from Python), although the
repetition of -m may be slightly weird I think it could work nicely.

In either case, the colon separator would be removed and the
application's variable name would be a positional following the 
script-or-module.



More information about the Web-SIG mailing list