<p>In <a href="https://github.com/geany/geany/pull/637#discussion_r38778268">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>The argv parsing happens in GLib. A function may be executed at any time after that. We can't simply get them from the original argv.</p>

<p>I'd rather export a function returning the reproduced GPtrArray (or simply char **). This way, we can extend it reproduce different sets of options, should need be. And GeanyOptionEntryAux is trivial to extend...</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#r38778268">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJx0ww8bw27aqpjc4M4t7qST2C-2mks5oudTagaJpZM4F1KFb.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#r38778268"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>