-
Notifications
You must be signed in to change notification settings - Fork 7
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
[FEATURE]: Skip loading of koinosrc file if RPC endpoint is passed on the command line #158
Comments
This issue is stale because it has been open for 30 days with no activity. |
Would adding a flag to skip loading of the rc file be sufficient? |
@mvandeberg I think adding a flag to skip loading of the rc file would be a workaround but probably not a solution... especially if #157 is implemented for snap (or other pkg manager) installations. Maybe an easier workaround that would satisfy this would be to just skip loading the |
Combining this idea with #187 -- you could add a section to .koinosrc to be run on "normal" start up.
Then you would only run the |
So on this, even though I love #187 it doesn't really solve this issue. If we do #157 and there is a 'global' RC file then command line options will never work if they aren't ignored when you pass them. Think of the user experience: I install with |
Is there an existing issue for this?
New feature
As a CLI wallet user I'd like to be able to specify an RPC endpoint and still connect to it even if a
.koinosrc
file is present that contains aconnect
command.Current behavior if a
.koinosrc
file is present and you use the-r
option:Once there is a global RC file implemented for system-wide package manager installs (separate related issue #157) then there will be no way around this and
-r
will never work for me because a.koinosrc
file will always be loaded no matter what.If a
.koinosrc
file is present in either the local or global locations and-r
is specified a message should also be displayed sayingIgnoring koinosrc file because an RPC endpoint was specified with -r
Anything else?
I believe that this should be only for the
-r
command line argument but could potentially just be all command line arguments.It should skip loading the entire
.koinosrc
file because contract addresses specified in it may be incorrect if you are connecting to a different endpoint (and this helps to keep the app chain agnostic while still delivering a good user experience for average mainnet users).The text was updated successfully, but these errors were encountered: