Skip to content

Commit

Permalink
Corrected way of reading Commandline Args into Props load API
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemanth Babu committed Aug 18, 2014
1 parent 73ebf5d commit 5bfba8e
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 5bfba8e

Please sign in to comment.