Commandline arguments?
See original GitHub issueI desperately miss command line parameters, so that I do not have to click all those buttons on the start-up dialog. I would be happy to make a PR, but would like to coordinate with you first, so that my efforts are not wasted.
What do you thing? Would that be something you might accept?
My idea would be to tap into the run()
function in ryven/main/Ryven.py
. In a first step I could think of implementing arguments for both the window and the flow theme, to enable debugging to the terminal and of all the three buttons in the start-up screen (“Create new project”, “Load project” or “Load example”) …
Further steps could include:
- Importing nodes (I would love to have this!)
- Set performance mode
- Set animations
- En/disable info messages
IMHO this would also be a good place to read an configuration file (do you have any preferences regarding the format?)
Does that sound sensible to you?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Yes, I want to keep the
qt_app
andgui_parent
arguments as they are at the moment. My idea was that all other arguments are compatible betweenrun()
's keyword arguments,argparse
command line arguments and a configuration file; that means they have the same names in all three appearances.Fair enough. That’s why I have asked.
Fair enough!
Thanks!
That was my idea, too.
IMHO YAML is always a choice I like. But it would pull in another dependency. But I have another idea, let’s see if it works …