Page 1 of 1 1
Topic Options
#193235 - 2009-03-27 06:19 PM Command line parsing
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4400
Loc: New Jersey
I make rather heavy use of command line argument parsing. The Kix script engine displays the following as "it's own" arguments:
/D, /F, /R, /U, & /T
/R and /U require the format "arg:value"

There is a problem with this and using C/L arguments in scripts..
  • Kix32 responds to "/" or "-" as arg specifiers, preventing the use of "-" args in scripts.
  • Kix32 responds to /H, which is undocumented.
  • Kix32 matches the first letter, so -DATA:val is interpreted as /D (debug).
I would like to see Kix be more strict in its argument matches, so that arguments can be passed to scripts without interference. Once change that would go a LONG way is to restrict Kix to using the "/" for its arguments, so that "-" can be used without conflict for script args.

I work around this now by using "+DATA", but the "+" is an unnatural argument initiator.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#193236 - 2009-03-27 06:22 PM Re: Command line parsing [Re: Glenn Barnas]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I second this.
kixtart commandline is heavily confusing to get working as one likes and Glenn, you poked one of the problems right in the eye.
_________________________
!

download KiXnet

Top
#193238 - 2009-03-27 06:28 PM Re: Command line parsing [Re: Lonkero]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4400
Loc: New Jersey
Which is why you should always wear your safety goggles when coding. ;\)
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 652 anonymous users online.
Newest Members
min_seow, Audio, Hoschi, Comet, rrosell
17881 Registered Users

Generated in 0.049 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org