public static Properties parseArguments(String[] args) {
    Properties props = argumentsToProperties(args);

    // complete with only the system properties that start with "sonar."
    for (Map.Entry<Object, Object> entry : System.getProperties().entrySet()) {
      String key = entry.getKey().toString();
      if (key.startsWith("sonar.")) {
        props.setProperty(key, entry.getValue().toString());
      }
    }
    return props;
  }
public static Properties parseArguments ( String [ ] args ) { Properties props = argumentsToProperties ( args ) ; for ( Map . Entry < Object , Object > entry : System . getProperties ( ) . entrySet ( ) ) { String key = entry . getKey ( ) . toString ( ) ; if ( key . startsWith ( "sonar." ) ) { props . setProperty ( key , entry . getValue ( ) . toString ( ) ) ; } } return props ; }
Build properties from command-line arguments and system properties