<blockquote>
<p>Currently Geany uses an option parsing library that does not support a single dash by itself and without the dash there is no way of differentiating between simply opening geany and reading the standard input.</p>
</blockquote>

<p>If GOptionParser chokes on a single <code>-</code> (does it? I figured it would just pass it through), some code could be added to detect/remove <code>-</code> from <code>argv</code> before calling into the option parser, instead of dealing with it after the option parser.</p>

<blockquote>
<p>Given the questions about windows <a href="https://github.com/codebrainz" class="user-mention">@codebrainz</a> raised this might only be a Linux feature</p>
</blockquote>

<p>It wasn't questions as much as a note if someone's gonna implement this feature, I think Windows needs another special case in order to get stdio handles for this to work.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/780#issuecomment-160238096">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ0JUnIUTRvNKBGF2dPf2LYWS9ceBks5pKQMrgaJpZM4GqokY.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/780#issuecomment-160238096"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>