<p>Grab bag of some code cleanups. See individual commits.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/osm2pgsql/pull/1189'>https://github.com/openstreetmap/osm2pgsql/pull/1189</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Move everything that can fail into try block in main</li>
  <li>Add connection info to multithreaded_processor parameters</li>
  <li>Move parsing of bbox into options processing where it belongs</li>
  <li>Rename parameter "do_append" to "append" for consistency</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1189/files#diff-8fc678ba06a385b9b43fa2afc72e840c">src/options.cpp</a>
    (27)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1189/files#diff-e1c9ddc1756fbfc23ab4970762a3a928">src/options.hpp</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1189/files#diff-faaea964870887b7bf7a4925ed64850f">src/osm2pgsql.cpp</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1189/files#diff-945b0338af91c31d5230475d7275513d">src/osmdata.cpp</a>
    (15)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1189/files#diff-2224226f2a0ecf44ccc0ce438c17e2e2">src/parse-osmium.cpp</a>
    (40)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1189/files#diff-89f2990ebd80a53ef17fa5013b7cfc9b">src/parse-osmium.hpp</a>
    (18)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1189.patch'>https://github.com/openstreetmap/osm2pgsql/pull/1189.patch</a></li>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1189.diff'>https://github.com/openstreetmap/osm2pgsql/pull/1189.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1189">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353XGU2LIW7SYJH26SXDRTS27TANCNFSM4NL26LTA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353ROWMXV37YNQ2JJ3TTRTS27TA5CNFSM4NL26LTKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JKHLQCA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1189",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1189",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>