Skip to content

Commit 7c98f68

Browse files
committed
New Auto-Updating function
1 parent 07072d9 commit 7c98f68

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/app.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import confuse
22
from app.utils import cli, banner, functions as func
33
from app.utils.logs import CustomLogger
4+
from app.utils import update
45
from app.modules.NmapParser import *
56
from app.modules import OutputFormat as out
67

@@ -67,24 +68,23 @@ def run():
6768
try:
6869
args = cli.get()
6970
single_xml = args.nmapxmlfile
70-
folder_multiple_xml = func.add_slash_if_needed(args.nmapxmldir)
71-
logger.info(folder_multiple_xml)
71+
folder_multiple_xml = func.add_slash_if_needed(args.nmapxmldir) if args.nmapxmldir else None
7272
list_output_format = (args.outputformat).split(",")
7373
file_output_name = args.outputname
7474
merger = args.merger
7575
recursive = args.recursive
7676
only_open_ports = args.open
77-
78-
if args.columns:
79-
df_columns = args.columns
80-
else:
81-
df_columns = HEADERS_DEFAULT
77+
df_columns = args.columns if args.columns else HEADERS_DEFAULT
8278

8379
except AttributeError as AE:
8480
logger.error(AE)
8581

82+
# Banner
8683
banner.main()
8784

85+
# Update tool
86+
update.update_program()
87+
8888
# Show arguments info
8989
banner.print_arguments_info(single_xml=single_xml,
9090
folder_multiple_xml=folder_multiple_xml,

0 commit comments

Comments
 (0)