You can't really deprecate that yet make the notebook selectable, either -n 
takes an option or not. 

On the plus side the error that you'll get is pretty self-explanatory.

$ ./sage -n foo=bar
CRITICAL:root:unknown notebook: foo=bar
Error, notebook must be one of default, ipython, sagenb but got foo=bar


On Monday, November 3, 2014 5:41:29 PM UTC, Clemens Heuberger wrote:
>
> Am 2014-11-03 um 16:05 schrieb Volker Braun: 
> > IMHO that is the expected outcome for an optional command line argument. 
> If you 
> > don't want the command line parsing to end (and not treat "directory..." 
> as 
> > value) then you should use 
> > 
> > sage -n -- directory=sage.sagenb 
>
> I'd appreciate if we would have a deprecation warning if a user tries to 
> use the 
> old behaviour (i.e., adding options immediately after -n, not knowing that 
> there 
> are  "-n default", "-n ipython", "-n sagenb" nowadays?). 
>
> Regards, CH 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.

Reply via email to