Skip to content
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

Add command line options for run_browser and dark_mode Gui.run() parameters #2128

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

FabienLelaquais
Copy link
Member

Add the --run-browser, --no-run-browser, --dark-mode, and --light-mode CLI options.

@FabienLelaquais FabienLelaquais added 📈 Improvement Improvement of a feature. 🟩 Priority: Low Low priority and doesn't need to be rushed Gui: Back-End labels Oct 22, 2024
@FabienLelaquais FabienLelaquais self-assigned this Oct 22, 2024
@FabienLelaquais FabienLelaquais changed the title Add command line options for run_browser and dark_mode Gui,run() parameters Add command line options for run_browser and dark_mode Gui.run() parameters Oct 22, 2024
Copy link
Contributor

github-actions bot commented Oct 22, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
19141 16598 87% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
taipy/gui/_gui_cli.py 90% 🟢
taipy/gui/config.py 92% 🟢
TOTAL 91% 🟢

updated for commit: 54bceb9 by action🐍

Copy link
Member

@FredLL-Avaiga FredLL-Avaiga left a comment

Choose a reason for hiding this comment

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

use only one var ?

"action": "store_true",
},
"--no-run-browser": {
"dest": "taipy_no_run_browser",
Copy link
Member

Choose a reason for hiding this comment

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

can we not use the same dest with action: store_false ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree. I chose to use the same pattern as for other options for homogeneity.
But I had the same question, with the same answer. This could be simplified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gui: Back-End 📈 Improvement Improvement of a feature. 🟩 Priority: Low Low priority and doesn't need to be rushed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants