Skip to content

cli: remove default from -n argument #39900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2025

Conversation

antonio-rojas
Copy link
Contributor

Without this, calling any command line argument (currently only sage -v) will launch the notebook, because args.notebook evaluates to True in https://github.com/sagemath/sage/blob/10.7.beta0/src/sage/cli/__init__.py#L42

The const option already takes care of providing a default value for -n.

Copy link

github-actions bot commented Apr 7, 2025

Documentation preview for this PR (built with commit 160c6f8; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Contributor

@tobiasdiez tobiasdiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Sorry that it took me so long to have a look at this PR.

vbraun pushed a commit to vbraun/sage that referenced this pull request May 11, 2025
sagemathgh-39900: cli: remove default from -n argument
    
Without this, calling any command line argument (currently only `sage
-v`) will launch the notebook, because `args.notebook` evaluates to
`True` in https://github.com/sagemath/sage/blob/10.7.beta0/src/sage/cli/
__init__.py#L42

The `const` option already takes care of providing a default value for
`-n`.
    
URL: sagemath#39900
Reported by: Antonio Rojas
Reviewer(s): Tobias Diez
@vbraun vbraun merged commit b8cf3de into sagemath:develop May 18, 2025
25 of 26 checks passed
@antonio-rojas antonio-rojas deleted the options-notebook branch May 18, 2025 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants