Skip to content

Commit b5cd898

Browse files
committed
first
1 parent 13899eb commit b5cd898

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

zoomeye/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,9 @@ def main():
219219
parser_domain.set_defaults(func=core.associated_domain_query)
220220

221221
args = parser.parse_args()
222+
ver=args.version()
222223

223-
if args.version:
224+
if ver:
224225
get_version()
225226
exit(0)
226227

zoomeye/show.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def print_info_filter(filters, raw_data, condition=None):
427427
printf(content)
428428

429429

430-
def show_domain_info(info_list, total, page):
430+
def show_domain_info(information_list, total, page):
431431
"""
432432
show query domain info
433433
Args:
@@ -437,10 +437,10 @@ def show_domain_info(info_list, total, page):
437437
None
438438
"""
439439

440-
if len(info_list) == 0:
440+
if len(information_list) == 0:
441441
return
442442
printf("{:<55}{:<15}{:<25}".format("name", "timestamp", "ip"), color="green")
443-
for d in info_list:
443+
for d in information_list:
444444
name, timestamp, ip = d.values()
445445
printf("{:<55}{:<15}{:<25}".format(name, timestamp, json.dumps(ip)))
446446
print()

0 commit comments

Comments
 (0)