On Mon, Jul 30, 2012 at 7:21 PM, Ron Wilson <[email protected]> wrote:

> On Sun, Jul 22, 2012 at 5:49 AM, Stephan Beal <[email protected]>
> wrote:
> > The "--" marker is the conventional "end of args" flag, used by several
> > tools to indicate that what comes after it should be ignored by the app
> > and/or passed on to a subordinate process.
>
> Actually "--" is end of options. Everything after the "--" is to be
> interpreted as parameters. See http://linux.die.net/man/3/getopt -
>

Oops - i've been using it the way i described above in my own apps for
years :(. Oh, well.


> "The special argument '--' forces an end of option-scanning regardless
> of the scanning mode"
>
> Your proposal sounds like a very useful idea.
>

It's the only idea i could think of :/. Another would be something like
gdb's --args, which allows us to pass args to the app being debugged (but
fossil already has an --args to read in arguments from a file). But i like
"--" better, and it currently has no meaning in Fossil, so there are no
compatibility issues or risks of argument name collisions.

i've been quite distracted lately from hacking on fossil (i _do_ have other
projects ;), but custom commands are the next thing on my fossil-specific
TODO list. i've got carried away the past few weeks with code which grew
out of the custom pages effort (first th1, then a custom
scripting mini-engine[1]), but some day soon i'll get back to adding this.
The th1-query-api branch contains the current code and adds the new "th1"
command which i use to write/test this support (and tinker with different
templating ideas). So far i'm fairly happy with what th1 can give us. It's
not as convenient as, say, JS, but it does the job and it has a couple
surprisingly useful features (like how it handles break/continue/return and
the "catch" command). Plus we know the author, so we get great support for
it ;).

Thanks for the feedback - keep it coming.


[1] http://fossil.wanderinghorse.net/repos/cwal/

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to