Minor bug in Command line parser

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

Minor bug in Command line parser

Post by roedygr » Sat May 10, 2014 10:15 pm

"%HTMLValidatorDir\cmdlineprocessor.exe" -msgwindow batchinstance -b E:\env\htmlval\recent.lst

"%HTMLValidatorDir\cmdlineprocessor.exe" -b E:\env\htmlval\recent.lst -msgwindow batchinstance

The first will work and the second will not..

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Minor bug in Command line parser

Post by Albert Wiersch » Mon May 12, 2014 1:35 pm

Hello,

This is not so much as bug as it is by design. All options should be specified before the main command (in this case before -b).

I've updated the documentation to make this more clear.
Image
Albert Wiersch

User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

Re: Minor bug in Command line parser

Post by roedygr » Sat May 17, 2014 6:03 am

Traditionally an option with out a - might necessarily come and the end, but anything of the form -x can come in any order.

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Minor bug in Command line parser

Post by Albert Wiersch » Sat May 17, 2014 7:56 am

Thanks. I will keep that in mind if I redo the parser for the command line options.
Image
Albert Wiersch

Post Reply