title: Having this psql error: 'extra command-line argument ignored'
body: <p>I'm currently trying to run a <code>.sh</code> file which will backup my database.</p>
  
  <p>The initial psql command is as follows:</p>
  
  <p><code>psql -h "$HOSTNAME" -U "$USERNAME" -W "$PASSWORD" -At -c "$SCHEMA_ONLY_QUERY" postgres</code></p>
  
  <p>I'm getting the error:</p>
  
  <p><code>psql: warning: extra command-line argument "postgres" ignored</code></p>
  
  <p>I'm not sure if I followed the psql documentation properly, because if I remove the <code>-W "$PASSWORD"</code> part then it suddenly works but I have to enter the password every time. </p>
  
  <p>I want to include the password so that it doesn't ask me for password repeatedly.</p>