Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# -*- coding: utf-8 -*-
2"""
3@file
4@brief Implements command line ``python -m pyrsslocal <command> <args>``.
6.. versionadded:: 0.9
7"""
8import sys
11def main(args, fLOG=print):
12 """
13 Implements ``python -m pyrsslocal <command> <args>``.
15 @param args command line arguments
16 @param fLOG logging function
17 """
18 from pyquickhelper.cli import cli_main_helper
19 try:
20 from .cli.merge_rss import compile_rss_blogs
21 except ImportError: # pragma: no cover
22 from pyrsslocal.cli.merge_rss import compile_rss_blogs
24 fcts = dict(compile_rss_blogs=compile_rss_blogs)
25 return cli_main_helper(fcts, args=args, fLOG=fLOG)
28if __name__ == "__main__":
29 main(sys.argv[1:]) # pragma: no cover