<p>In <a href="https://github.com/geany/geany/pull/637#discussion_r38709998">src/main.h</a>:</p>
<pre style='color:#555'>> @@ -52,6 +52,17 @@ CommandLineOptions;
>  extern CommandLineOptions cl_options;
>  
>  
> +/* Information about command line entries that can not be stored in GOptionEntry. */
> +typedef struct
> +{
> +  gboolean persistent;  /* The option should be passed to "New Window" */
> +}
> +GeanyOptionEntryAux;
> +
> +extern GOptionEntry optentries[];
> +extern GeanyOptionEntryAux optentries_aux[];
</pre>
<p>We could add a function in libmain.c which could be called at argv parsing time and save a GPtrArray containing the <code>argv</code> to be forwarded into the already global <code>GeanyApp</code> structure. It would have the advantage of keeping all of the <code>argv</code>/GOption parsing code in the same file/place too.</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/pull/637/files#r38709998">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ6FColofZeDjGZSI1GG9Diq7hQSWks5ouNTZgaJpZM4F1KFb.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/pull/637/files#r38709998"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>