[yelp-tools] yelp-check.py: Default to cwd if no file args are passed



commit 432ea82e071419f7f533853e97e268d43f8fc1a4
Author: Shaun McCance <shaunm redhat com>
Date:   Fri Dec 18 20:33:56 2020 -0500

    yelp-check.py: Default to cwd if no file args are passed

 tools/yelp-check.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tools/yelp-check.py b/tools/yelp-check.py
index 5a5afdf3..46322e10 100644
--- a/tools/yelp-check.py
+++ b/tools/yelp-check.py
@@ -118,6 +118,8 @@ class Checker:
 
     def iter_files(self, sitedir=None):
         issite = self.options.get('-s', False)
+        if len(self.fileargs) == 0:
+            self.fileargs.append('.')
         for filearg in self.fileargs:
             if os.path.isdir(filearg):
                 if issite:


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