summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@redhat.com>2020-12-18 20:33:56 -0500
committerShaun McCance <shaunm@redhat.com>2020-12-18 20:33:56 -0500
commit432ea82e071419f7f533853e97e268d43f8fc1a4 (patch)
tree12ca0500dc50e3538ff659f6f62eda7b758f7e9f
parent51c28cdd0853aa2eda2de6454227450bdfd5634b (diff)
downloadyelp-tools-432ea82e071419f7f533853e97e268d43f8fc1a4.tar.gz
yelp-check.py: Default to cwd if no file args are passed
-rw-r--r--tools/yelp-check.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/yelp-check.py b/tools/yelp-check.py
index 5a5afdf..46322e1 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: