File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,12 @@ def parse_args():
20
20
formatter_class = argparse .ArgumentDefaultsHelpFormatter ,
21
21
)
22
22
parser .add_argument (
23
- dest = 'dir_path' , help = 'Directory path to search recursively' ,
23
+ dest = 'dir_path' ,
24
+ help = 'Directory path to search recursively' ,
25
+ )
26
+ parser .add_argument (
27
+ '--no-validate' , '-n' , action = 'store_true' ,
28
+ help = 'Directory path to search recursively' ,
24
29
)
25
30
return parser .parse_args ()
26
31
@@ -62,6 +67,11 @@ def main():
62
67
""" Main entrypoint """
63
68
args = parse_args ()
64
69
70
+ if args .no_validate :
71
+ for path in find_key_paths (args .dir_path ):
72
+ print (path )
73
+ sys .exit (0 )
74
+
65
75
found = False
66
76
for path in find_valid_keys (args .dir_path ):
67
77
print (path , file = sys .stderr )
You can’t perform that action at this time.
0 commit comments