title: How to set protractor(v1.4.0) baseUrl using protractor API instead of configuration file?
body: <p>i use protractor v1.4.0 and I want to set protractor baseUrl from command line so i can't use </p>
  
  <p><code>baseUrl: 'http://localhost:8000/',</code></p>
  
  <p>config option in protractor configuration file. I want to define default value for base url with "params" option in protractor configuration file as follows:</p>
  
  <p><code>params: {
          baseUrl: 'http://localhost:8080/'
      },</code></p>
  
  <p>and then overwrite the default value by passing a new value from command line when i run protractor as follows:</p>
  
  <p><code>protractor 'path_to_my_conf_file' --params.baseUrl http://localhost:80/</code> </p>
  
  <p>then in my spec file i need to set base url using protractor API, but i can't find how to do that. </p>
  
  <p>The 1-st answer to the following question is exactly what i need but it doesn't work.</p>
  
  <p><a href="https://stackoverflow.com/questions/23062369/how-can-i-add-urls-dynamically-to-protractor-tests">How can I add URL&#39;s dynamically to Protractor tests?</a></p>