Skip to content

Commit 2f2016e

Browse files
authored
Merge pull request #276 from netromdk/issue-263
Show tip if . arg and --no-make-paths-absolute used with no detected paths
2 parents 6154e9e + 75d2bf6 commit 2f2016e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vermin/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def main():
4444
amount = len(paths)
4545
if amount == 0:
4646
nprint("No files specified to analyze!", config)
47+
if config.show_tips() and not config.make_paths_absolute() \
48+
and any(p.startswith(".") for p in args["paths"]):
49+
nprint("Tip: Maybe use the --hidden argument to analyze hidden files.", config)
4750
sys.exit(1)
4851

4952
msg = "Analyzing"

0 commit comments

Comments
 (0)