On 07/16/2016 04:17 PM, James Youngman wrote:
> I quite like the idea.   Here's an example implementation of a flag that
> could be used in a shell function/alias, if that's your thing.  Comments?
> 

> 0001-xargs-add-new-option-interactive-default-yes-modifyi.patch
> 
> 
> From bfea9c150229db14316262c1c05198c7caeb9538 Mon Sep 17 00:00:00 2001
> From: James Youngman <j...@gnu.org>
> Date: Sat, 16 Jul 2016 15:10:32 +0100
> Subject: [PATCH] xargs: add new option --interactive-default-yes, modifying
>  --interactive.
> To: findutils-patc...@gnu.org

Another option may be confusing because they contradict (a bit).
I'd rather let --interactive take an optional parameter like

  xargs --interactive=yes
  xargs --interactive=no   # like the default, or overriding ..=yes
  xargs --interactive      # well-known


and let it default to no (like before).

WDYT?

Have a nice day,
Berny


Reply via email to