News for hackers. Stuff that matters.
Re:Use long flags when scripting (2013) by coldacid on Friday September 18, 2020 @03:53PM (#24521208)
If I'm splitting across lines, I prefer to put the pipe _after_ the newline. Otherwise, I like the cut of your jib, and will likely do this with arguments in scripts from now on.
Re:Use long flags when scripting (2013) by m463 on Saturday September 19, 2020 @02:17PM (#24529399)
sometimes I do something like this:

  foo \
    --group1 \
    \
    --group 2 \
    --more-stuff 2 \
    | \
   bar \
    --bar-stuff
using a line with a single backlash or breaking out the pipe can make grouping stuff clear. well, I mean as clear as having to use backslashes which to me is a little inelegant. Personally python and its indenting strategy has grown on me especially since editor support makes it painless to use and visually excellent.