Skip to content
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

Overriding list parameters via commandline #74

Closed
keyboardsamurai opened this issue Jun 4, 2013 · 3 comments
Closed

Overriding list parameters via commandline #74

keyboardsamurai opened this issue Jun 4, 2013 · 3 comments

Comments

@keyboardsamurai
Copy link

Just found out via http://stackoverflow.com/questions/16202501/how-can-i-override-a-typesafe-config-list-value-on-the-command-line/16202570#16202570 that it is not currently possible to override lists of objects on the commandline.

So the value in application.conf values=[1,2,3] Would be readable by this code

  val config = ConfigFactory.load
  val values = config.getIntList("value").toList.asInstanceOf[List[Int]]

While the commandline override parameter -Dvalues=[1,2,3] would fail with an exception.

@patriknw
Copy link
Contributor

patriknw commented Jun 4, 2013

Implemented by #69 in version 1.0.1

@keyboardsamurai
Copy link
Author

Got it, thanks for the pointer and sorry for littering. 2.1.4 version of akka is tied to 1.0.0 but the transitive dependencies can be overridden to 1.0.1 without any apparent problems.

@havocp
Copy link
Collaborator

havocp commented Jun 4, 2013

Should not be problems (1.0.1 is supposed to be compatible) so if you have trouble do let us know.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants