gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 5ccd5e57: Convolve: --quiet option also affect


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 5ccd5e57: Convolve: --quiet option also affects name of output file
Date: Mon, 3 Oct 2022 13:50:44 -0400 (EDT)

branch: master
commit 5ccd5e57d41aa4200227d2f0f37689fd2396ae76
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Convolve: --quiet option also affects name of output file
    
    Until now, when given the '--quiet' option, the Convolve program would
    still print the "Output: ..." on the standard output.
    
    With this commit, that statement is only printed when '--quiet' is not
    activated.
    
    This bug was reported by Teet Kuutma.
---
 bin/convolve/convolve.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/convolve/convolve.c b/bin/convolve/convolve.c
index c585d40f..4cd1b295 100644
--- a/bin/convolve/convolve.c
+++ b/bin/convolve/convolve.c
@@ -828,5 +828,8 @@ convolve(struct convolveparams *p)
       gal_fits_key_write_config(&cp->okeys, "Convolve configuration",
                                 "CONVOLVE-CONFIG", cp->output, "0");
     }
-  printf("  - Output: %s\n", p->cp.output);
+
+  /* Inform the user that the job is done. */
+  if(!p->cp.quiet)
+    printf("  - Output: %s\n", p->cp.output);
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]