Skip to content

Commit 3734a02

Browse files
authored
Added arguments (with default values) to handle all analyze options in cli (#93)
1 parent 4f4135a commit 3734a02

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

seoanalyzer/__main__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ def main(args=None):
2121
arg_parser.add_argument('-f', '--output-format', help='Output format.', choices=['json', 'html', ],
2222
default='json')
2323

24+
arg_parser.add_argument('--analyze-headings', default=False, action='store_true', help='Analyze heading tags (h1-h6).')
25+
arg_parser.add_argument('--analyze-extra-tags', default=False, action='store_true', help='Analyze other extra additional tags.')
26+
arg_parser.add_argument('--no-follow-links', default=True, action='store_false', help='Analyze all the existing inner links as well (might be time consuming).')
27+
2428
args = arg_parser.parse_args()
2529

26-
output = analyze(args.site, args.sitemap)
30+
output = analyze(args.site, args.sitemap, analyze_headings=args.analyze_headings, analyze_extra_tags=args.analyze_extra_tags, follow_links=args.no_follow_links)
2731

2832
if args.output_format == 'html':
2933
from jinja2 import Environment

0 commit comments

Comments
 (0)