---
** [patches:#524] cmdline options to undo previous options**
**Status:** open **Group:** bugfix **Created:** Tue Jun 10, 2014 10:45 AM UTC by IOhannes m zmölnig **Last Updated:** Tue Jun 10, 2014 10:45 AM UTC **Owner:** Miller Puckette
currently, Pd has no way to disable a cmdline option. e.g. the flag **-noautopatch** disables the auto-patching feature, but there is no corresponding **-autopatch** flag. similarily, on linux there is no way to switch to the default MIDI-API (*OSS*) once the *alsa*-API has been chosen (using the **-alsamidi** flag).
this is annoying in three cases:
- *partially overriding preferences:* 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 **-noprefs** flag) or by modifying them (which they probably don't want to, as these are the settings they *prefer*)
- *scripts that call Pd with flags:* 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 **-nogui**) and other wise pass cmdline args unchanged to Pd (e.g. the patch to open, the search-paths to use). 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)
- *binaries with different defaults:* sometimes binaries that pretend to be Pd-vanilla (like the Debian package "puredata") chose slightly different defaults (Debian uses *alsa* as the default MIDI-API, as this provides an out-of-the-box solution for much more people than *OSS*). how to restore the original "defaults"?
the attached patch adds a number of additional flags that negate previous settings (e.g. **-gui** to override a **-nogui** flag) when it seems to make sense.
i left out the **-prefs** flag (overriding a **-noprefs** option) mainly because this could be useful for specifying an alternative preferences-file (**-prefs /tmp/myotherprefs**).
---
Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to https://sourceforge.net/p/pure-data/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pure-data/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.