How to use arguments from command line? #1089
Unanswered
pedroripper
asked this question in
Q&A
Replies: 1 comment
-
Hey, There's no first-party support for this, but what I would do is take my database service registration out of the this way you can register your database service with the args passed into main. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I am using Stacked to build a desktop application that should be able to open a
.sqlite
file from the command line using its release (example below).If no arguments are passed, it goes to a view where the user can open the file explorer to select the file themself. However, I am having trouble to use the path given as argument in the command line to skip the selecting file part.
Currently I am able to get the path argument passing it as a parameter for the
main
function.What I would like to know is if there is a simple way to pass this path to a specific view using methods from Stacked.
We have a Service for opening the database for a given path
And this Service is initialized in the SplashView
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions