Skip to content

Commit

Permalink
Merge pull request #88 from hemus2121/master
Browse files Browse the repository at this point in the history
Corrected way of reading Commandline Args into Props load API
  • Loading branch information
Luigi R. Viggiano committed Aug 19, 2014
2 parents 73ebf5d + 5bfba8e commit bf88a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion owner-site/site/docs/importing-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static void main(String[] args) {
MyConfig cfg;
if (args.lenght() > 0) {
Properties props = new Properties();
props.load(new File(args[0]);
props.load(new FileInputStream(new File(args[0])));
cfg = ConfigFactory.create(MyConfig.class, userProps);
} else {
cfg = ConfigFactory.create(MyConfig.class);
Expand Down

0 comments on commit bf88a55

Please sign in to comment.