Skip to content

Commit

Permalink
Added scan subdomain only feature in onboard command
Browse files Browse the repository at this point in the history
  • Loading branch information
Prateek-Thakare committed Jul 3, 2024
1 parent 0530b57 commit 49ef690
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mantis/utils/args_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def args_parse() -> ArgsModel:
help = 'List of comma separated aws profiles for Route53',
)

onboard_parser.add_argument('--sub',
dest = 'subdomain',
help='Subdomain to onboard and scan',
action = 'store_true')


scan_parser = subparser.add_parser("scan", help="Scan an org", usage=ArgsParse.scan_msg())
Expand Down Expand Up @@ -278,7 +282,10 @@ def args_parse() -> ArgsModel:
if args.subcommand == "scan":
if args.subdomain:
parsed_args["subdomain"] = args.subdomain


if args.subcommand == "onboard":
if args.subdomain:
parsed_args["subdomain"] = args.host

args_pydantic_obj = ArgsModel.parse_obj(parsed_args)
logging.info(f'parsed args - {args_pydantic_obj}')
Expand Down

0 comments on commit 49ef690

Please sign in to comment.