ServerJS/Command Line: Difference between revisions
< ServerJS
Jump to navigation
Jump to search
(→Prior Art: Fixed links to MS WSH ; added link to curlIE's CommandLine object) |
m (→Prior Art: typo) |
||
Line 5: | Line 5: | ||
== Prior Art == | == Prior Art == | ||
* Microsoft [http://msdn.microsoft.com/en-us/library/ss1ysb2a(VS.85).aspx WshArguments] object in the Windows | * Microsoft [http://msdn.microsoft.com/en-us/library/ss1ysb2a(VS.85).aspx WshArguments] object in the Windows Script Host environment. | ||
** [http://code.google.com/p/curlie/source/browse/trunk/curlIE.wsf?spec=svn9&r=7#39 CommandLine object], by Olivier Mengué, a generic API to Unix-style parsed arguments with a concrete JavaScript implementation on top of WshArguments ([http://code.google.com/p/curlie/source/browse/trunk/curlIE.wsf?spec=svn9&r=7#163 CScriptCommandLine]). | ** [http://code.google.com/p/curlie/source/browse/trunk/curlIE.wsf?spec=svn9&r=7#39 CommandLine object], by Olivier Mengué, a generic API to Unix-style parsed arguments with a concrete JavaScript implementation on top of WshArguments ([http://code.google.com/p/curlie/source/browse/trunk/curlIE.wsf?spec=svn9&r=7#163 CScriptCommandLine]). | ||
* Python's [http://docs.python.org/library/optparse.html optparse] module provides a reasonably powerful, flexible and full-featured option parser | * Python's [http://docs.python.org/library/optparse.html optparse] module provides a reasonably powerful, flexible and full-featured option parser. |
Revision as of 22:47, 1 June 2009
Command line processing
Many server-side tools use a command line as their interface, and there should be a high-level way to deal with the arguments.
Prior Art
- Microsoft WshArguments object in the Windows Script Host environment.
- CommandLine object, by Olivier Mengué, a generic API to Unix-style parsed arguments with a concrete JavaScript implementation on top of WshArguments (CScriptCommandLine).
- Python's optparse module provides a reasonably powerful, flexible and full-featured option parser.