[yelp-tools] yelp-check.py: Default to cwd if no file args are passed
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-tools] yelp-check.py: Default to cwd if no file args are passed
- Date: Sat, 19 Dec 2020 01:34:23 +0000 (UTC)
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]