Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Commandline arguments?

See original GitHub issue

I 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/ 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:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

sphhcommented, Feb 28, 2022
  1. Backward compatibility […]

Yes, I want to keep the qt_app and gui_parent arguments as they are at the moment. My idea was that all other arguments are compatible between run()'s keyword arguments, argparse command line arguments and a configuration file; that means they have the same names in all three appearances.

  1. This was a deliberate choice […]

Fair enough. That’s why I have asked.

  1. I would prefer sticking to NodePackage objects […]

Fair enough!

sphhcommented, Feb 28, 2022

Oh, please go ahead!


I suggest argparse.

That was my idea, too.

Absolutely, I do not have strong preferences, you probably know better than I do (otherwise, YAML is nice because it is obvious and allows comments).

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 …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command line arguments in C/C++ - GeeksforGeeks
Command -line arguments are given after the name of the program in command-line shell of Operating Systems. To pass command line arguments, we ......
Read more >
Command Line Arguments in C - Don't be Confused be ...
Command line arguments are nothing but simply arguments that are specified after the name of the program in the system's command line, and...
Read more >
C - Command Line Arguments - Tutorialspoint
It is possible to pass some values from the command line to your C programs when they are executed. These values are called...
Read more >
Command Line Arguments
Command line arguments allow the user to affect the operation of an application. For example, an application might allow the user to specify...
Read more >
Windows Terminal command line arguments | Microsoft Learn
To display a help message listing the available command line arguments, enter: wt -h , wt --help , wt -? , or wt...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found