Volker Braun wrote:
You can't really deprecate that yet make the notebook selectable, either
-n takes an option or not.
Well, if a (potential) argument follows '-n', but doesn't match any of
'ipython', 'sagenb', nor 'default', we should probably default to
'default'... ;-) (Not to mention it contains an equals sign in the case
here, such that it's pretty clear what's meant, or not meant.)
On the plus side the error that you'll get is pretty self-explanatory.
CRITICAL:root:unknown,
-leif
$ ./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
--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail
--
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.