On Fri, Jan 27, 2012 at 18:26, David Roe <r...@math.harvard.edu> wrote:
> We're working on rewriting the doctest framework only.  So we're still
> just sticking to hyphens, but are making them UNIX-compliant: --gdb
> instead of -gdb for example.  My first impression of your proposal is
> that I like it, though there are some ambiguities in the syntax: in
> mercurial the subcommand is required, whereas in sage we would also
> want to allow "sage ARGS".  So you have to be careful what you mean by
> "sage test": are you running sage on a file called test, or are you
> running the subcommand test with no arguments.

I mentioned this elsewhere in the thread, but I think we can use "--"
as an escaper of sorts. (git does this, for example). So `sage test`
would run the subcommand "test" with no arguments, and `sage -- test`
would run a sage script in a file called "test".

-Keshav

----
Join us in #sagemath on irc.freenode.net !

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to