<div class="markdown_content"><hr />
<p><strong> <a class="alink" href="http://sourceforge.net/p/pure-data/patches/524/">[patches:#524]</a> cmdline options to undo previous options</strong></p>
<p><strong>Status:</strong> open<br />
<strong>Group:</strong> bugfix<br />
<strong>Created:</strong> Tue Jun 10, 2014 10:45 AM UTC by IOhannes m zmölnig<br />
<strong>Last Updated:</strong> Tue Jun 10, 2014 10:45 AM UTC<br />
<strong>Owner:</strong> Miller Puckette</p>
<p>currently, Pd has no way to disable a cmdline option. e.g. the flag <strong>-noautopatch</strong> disables the auto-patching feature, but there is no corresponding <strong>-autopatch</strong> flag.<br />
similarily, on linux there is no way to switch to the default MIDI-API (<em>OSS</em>) once the <em>alsa</em>-API has been chosen (using the <strong>-alsamidi</strong> flag).</p>
<p>this is annoying in three cases:</p>
<ul>
<li>
<p><em>partially overriding preferences:</em><br />
if the user added some flags to their preferences (e.g. to use alsa-MIDI as the default; or run in verbose mode), they cannot override these defaults on an ad-hoc basis without either completely disabling their preferences (using the <strong>-noprefs</strong> flag) or by modifying them (which they probably don't want to, as these are the settings they <em>prefer</em>)</p>
</li>
<li>
<p><em>scripts that call Pd with flags:</em><br />
some scripts (I use) call Pd with a number of flags that makes them fit for the target purpose (e.g. running on an embedded device, thuse using <strong>-nogui</strong>) and other wise pass cmdline args unchanged to Pd (e.g. the patch to open, the search-paths to use).<br />
it is often desirable to be able to override one of these flags for testing purposes (e.g. starting up the GUI when running the script in an interactive session with X-Forwarding)</p>
</li>
<li>
<p><em>binaries with different defaults:</em><br />
sometimes binaries that pretend to be Pd-vanilla (like the Debian package "puredata") chose slightly different defaults (Debian uses <em>alsa</em> as the default MIDI-API, as this provides an out-of-the-box solution for much more people than <em>OSS</em>). how to restore the original "defaults"?</p>
</li>
</ul>
<p>the attached patch adds a number of additional flags that negate previous settings (e.g. <strong>-gui</strong> to override a <strong>-nogui</strong> flag) when it seems to make sense.</p>
<p>i left out the <strong>-prefs</strong> flag (overriding a <strong>-noprefs</strong> option) mainly because this could be useful for specifying an alternative preferences-file (<strong>-prefs /tmp/myotherprefs</strong>).</p>
<hr />
<p>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pure-data/patches/">https://sourceforge.net/p/pure-data/patches/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pure-data/admin/patches/options.">https://sourceforge.net/p/pure-data/admin/patches/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>