Skip to content

Commit

Permalink
Ignore --progress if STDERR is not a TTY
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 13, 2024
1 parent ecc029d commit 6566f92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Revision history for App-Rak

{{$NEXT}}
- Ignore --progress if STDERR is not a tty. This allows
--progress to be used as a default

0.2.24 2024-05-13T15:50:05+02:00
- Allow --edit to work with --files-with-matches and
Expand Down
2 changes: 1 addition & 1 deletion lib/App/Rak.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -2128,7 +2128,7 @@ my sub option-progress($value --> Nil) {
?? $value
?? $writing-to-stderr
?? (%rak<progress> := &progress)
!! meh "--progress can only write to STDERR"
!! Nil
!! Nil
!! meh "'--progress' must be a flag"
}
Expand Down

0 comments on commit 6566f92

Please sign in to comment.