Skip to content

passing arguments to Sage scripts is no longer possible #40871

@yyyyx4

Description

@yyyyx4

On Arch Linux, using Sage 10.7, the interpreter throws up when command-line parameters are passed to a script:

$ ./a.sage 42
usage: sage [-h] [-v] [-q] [--simple-prompt] [-V] [-n [{jupyter,jupyterlab}]] [-c [COMMAND]] [file]
sage: error: unrecognized arguments: 42
$ sage a.sage 42
usage: sage [-h] [-v] [-q] [--simple-prompt] [-V] [-n [{jupyter,jupyterlab}]] [-c [COMMAND]] [file]
sage: error: unrecognized arguments: 42

I tried this on a few other machines and it does look like it might be an Arch-specific issue (but it's hard to tell since most other distributions still distribute older versions of Sage). Hence, Cc: @antonio-rojas.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions