summary refs log tree commit diff stats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cetus-nasa/cetus-nasa.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/cetus-nasa/cetus-nasa.go b/cmd/cetus-nasa/cetus-nasa.go
index d462455..801a89f 100644
--- a/cmd/cetus-nasa/cetus-nasa.go
+++ b/cmd/cetus-nasa/cetus-nasa.go
@@ -69,9 +69,7 @@ func main() {
 		log.Fatal(err)
 	}
 
-	if !quiet {
-		printDetails(apodRes)
-	}
+	printDetails(apodRes)
 
 	// if fetchOnly is true then don't set background
 	if fetchOnly {
@@ -110,6 +108,9 @@ func parseFlags() {
 }
 
 func printDetails(apodRes nasa.APOD) {
+	if quiet {
+		return
+	}
 	fmt.Printf("Title: %s\n\n", apodRes.Title)
 	fmt.Printf("Copyright: %s\n", apodRes.Copyright)
 	fmt.Printf("Date: %s\n\n", apodRes.Date)