question-mark
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.

Accept CLI args via config file

See original GitHub issue

Splitting off from https://github.com/ethereumjs/testrpc/pull/24.

As suggested in https://github.com/ethereumjs/testrpc/issues/23 parsing a genesis.json would be a useful feature and in trufflesuite/ganache-cli#24 we discussed perhaps it is better to have a separate configuration file and/or commandline parameters (for a subset or all options).

Given there are two other PRs in the pipeline (https://github.com/ethereumjs/testrpc/pull/28 (gasLimit) and https://github.com/ethereumjs/testrpc/pull/36 (gasPrice)) as well as the --seed and perhaps lightwallet options, I think it would be useful to discuss and make a decision on how configuration should work.

I would vote for having a comprehensive configuration file and including some frequently used options in the commandline.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cds-amalcommented, Nov 3, 2021

This will be addressed in #811

0reactions
benjamincburnscommented, Oct 23, 2017

Would accept a PR for this if it were effectively generating the config file parsing from the command line arg spec, and allowed command line args to override options specified in the config file. Not likely to prioritize this feature in the near future, however.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Forget command-line arguments: use a config file | Medium
Ditch the command-line arguments from your machine learning code: use a config file. Real examples that you can incorporate into your code ...
Read more >
Command line parameters or configuration file? - Stack Overflow
I started implementing this using a configuration file, since the number of types of analysis specified were little. As the number of options...
Read more >
Command Line Arguments and Config file
Open the shortcut properties with the right mouse button and in the Shortcut section in the Target property, you can see the specified...
Read more >
Add support for specifying the cli args for running a node from ...
The proposal is to add an option --config-filename <PATH> for writting the command line arguments in a file, and the same option specified...
Read more >
Configuration files · CLI11 Tutorial
Writing out a configure file ... CLI::App app; app.add_option(...); // several other options CLI11_PARSE(app, argc, argv); //the config printout should be after ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found