<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">this breaks th eexpectations of cmdline processing (a separation between
options with arguments (e.g. '-a "1 2 3"') and 'just arguments"
("patch1.pd patch2.pd"). </pre>
      </blockquote>
      Agreed.<br>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">or should it be the other way round?
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">pd -args 'foo bar' -open "patch1.pd" -open "patch2.pd"
</pre>
        </blockquote>
      </blockquote>
      I tend to agree. It's also easier to parse.</p>
    <p>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">it has the advantage that you can pass the same arguments to multiple
(or all) patches.
it also makes it quite easy to keep compatibility with the "the rest of
the arguments are files" paradigm:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">pd -args 24 foo.pd bar.pd
</pre>
        </blockquote>
      </blockquote>
    </p>
    <p>Ugh... stateful command line options are ugly. What if you
      *don't* want to pass the arguments to subsequent patch files? I'd
      rather restrict the '-args' option to a single patch. But I'm not
      sure how to properly apply this to patch files provided as "just
      arguments". Maybe only allow it for patches opened with "-open"?</p>
    <p>Christof<br>
    </p>
    <div class="moz-cite-prefix">On 08.06.2020 20:52, IOhannes m zmölnig
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:cf1d935c-fb37-e32e-e4ee-1c38fbf802aa@iem.at">
      <pre class="moz-quote-pre" wrap="">On 6/8/20 5:49 PM, Christof Ressi wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">The thing is that we can load more than one patch. I think something
like this could work:

pd patch1.pd -a "1 2 3" patch2.pd -a "foo bar"

But we could move the bikeshedding to GitHub ;-)
<a class="moz-txt-link-freetext" href="https://github.com/pure-data/pure-data/issues/1058">https://github.com/pure-data/pure-data/issues/1058</a>

</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">

actually i think that a mailinglist is much better suited for the
bikeshedding tour.

at least for me, i tend to apply a " closed-for-me" tag to all those
issues that have a very high noise-to-signal ratio (and there are quite
a couple of those).
the non-threaded nature of the issues makes it virtually impossible to
keep track of divergent opinions.

so:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">pd patch1.pd -a "1 2 3" patch2.pd -a "foo bar"
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
urgh, no.
this breaks th eexpectations of cmdline processing (a separation between
options with arguments (e.g. '-a "1 2 3"') and 'just arguments"
("patch1.pd patch2.pd"). i think this separation is quite universal in
un*x like environments, and i don't see any compelling reason to
actually break it.

o a more consistent way would be:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">pd -open patch1.pd -args "1 2 3" -open "patch2.pd" -args "foo bar"
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
or should it be the other way round?
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">pd -args 'foo bar' -open "patch1.pd" -open "patch2.pd"
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
the inspiration for this is the dollar-expansion in message-boxes.

it has the advantage that you can pass the same arguments to multiple
(or all) patches.
it also makes it quite easy to keep compatibility with the "the rest of
the arguments are files" paradigm:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">pd -args 24 foo.pd bar.pd
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">

gsamdr
IOhannes

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
  </body>
</html>