From fac53fe8f3048ce21e30d5b1afd79d988c24c5fc Mon Sep 17 00:00:00 2001 From: rra Date: Thu, 15 Feb 2018 15:26:44 +0100 Subject: [PATCH] supressing output unless verbose --- distribusi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/distribusi.py b/distribusi.py index 7b3f6e8..27d9bee 100755 --- a/distribusi.py +++ b/distribusi.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: iso-8859-15 -*- #depends on python-magic 0.4 @@ -13,7 +13,8 @@ parser.add_argument('-v', '--verbose', help="Print verbose debug output", action args = parser.parse_args() if args.directory: - print('Generating directory listing for', args.directory) + if args.verbose: + print('Generating directory listing for', args.directory) directory = args.directory else: directory = '.'