[Cs-dev] commandflag change request
Date | 2006-05-15 00:44 |
From | matt ingalls |
Subject | [Cs-dev] commandflag change request |
in my frontend app i have a little text edit box where users enter commandline flags, before rendering, i parse the box and create argv and argc to pass to csound. i would like to request to remove any '-'s inside commandline options, for example this one: --expression-opt it adds a requirement of spaces to delineate flags, which otherwise could be considered optional [at least how i am using them in my text edit box]. the separated by spaces requirement is just an extra possible user error. in addition, it just makes things a bit harder to read when you get a long list of options. changing '-' to '_' would suffice. thanks, matt |
Date | 2006-05-22 21:10 |
From | Istvan Varga |
Subject | Re: [Cs-dev] commandflag change request |
Attachments | None |
Date | 2006-05-23 00:29 |
From | matt ingalls |
Subject | Re: [Cs-dev] commandflag change request |
i would suggest adding equivalent options with underscores and leave the options with '-'s, but label them as deprecated in the manual. But it's not that big of a deal, i was more being lazy and reluctant to change my code that was "broken" by the addition of these flags. [ but i went ahead and changed it anyway ] Plus now it occurs to me that one could also have a command flag with a filename that had a '-' in the middle and need to know how to handle that case anyway. thanks, -m On May 22, 2006, at 1:10 PM, Istvan Varga wrote: > This would be an incompatible change, though, and given that > csoundCompile() requires the host application to build a > command line, the flags are in some way part of the API (i.e. > changing them can possibly break existing frontends). > Or did you mean creating aliases for all the options that > include a '-' character (although it would be somewhat > confusing to have for example --expression-opt, but having > to use --expression_opt or even -expression_opt in the Mac > frontend) ? > > On Monday 15 May 2006 01:44, matt ingalls wrote: > >> in my frontend app i have a little text edit box where users enter >> commandline flags, before rendering, i parse the box and create argv >> and argc to pass to csound. i would like to request to remove any >> '-'s inside commandline options, for example this one: >> >> --expression-opt >> >> it adds a requirement of spaces to delineate flags, which otherwise >> could be considered optional [at least how i am using them in my >> text edit box]. the separated by spaces requirement is just an extra >> possible user error. >> >> in addition, it just makes things a bit harder to read when you get >> a long list of options. >> >> changing '-' to '_' would suffice. > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |