Fossil has Tcl heritage through SQLite, also TH1, so it makes sense that
this convention carry through by habit.
I believe very very old Tcl used square brackets in its documentation to
indicate optional arguments, but it quickly switched to question marks to
avoid ambiguity with script substitutions which are done using square
brackets.
On Jun 4, 2015 1:30 AM, Luca Ferrari fluca1...@infinito.it wrote:
Hello,
one thing that puzzles me every time I do fossil command help is the
presence of question marks for oprtional parameters, as in
% fossil help commit
Usage: fossil commit ?OPTIONS? ?FILE...?
while I would expect it to be like
% fossil help commit
Usage: fossil commit [OPTIONS] [FILE...]
Now, if I get it right the fossil syntax comes from the one used in
tcl, or at least is what I can see in tclsh(1). Is this right? Is
there a particular rationale for this (and any pointer to the
name/conventions of such syntax)?
Thanks,
Luca
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users