def distroinfo(cargs, version=__version__):
code = <NUM_LIT:1><EOL>args = docopt(__doc__, argv=cargs)<EOL>try:<EOL><INDENT>if args['<STR_LIT>']:<EOL><INDENT>if not version:<EOL><INDENT>version = '<STR_LIT>'<EOL><DEDENT>print(version)<EOL>code = <NUM_LIT:0><EOL><DEDENT>elif args['<STR_LIT>']:<EOL><INDENT>code = fetch(<EOL>info_url=args['<STR_LIT>'],<EOL>info_files=args['<STR_LIT>'],<EOL>cache_dir=args['<STR_LIT>'],<EOL>fetcher=args['<STR_LIT>'],<EOL>)<EOL><DEDENT>elif args['<STR_LIT>']:<EOL><INDENT>code = dump(<EOL>info_url=args['<STR_LIT>'],<EOL>info_files=args['<STR_LIT>'],<EOL>yaml_out=args['<STR_LIT>'],<EOL>json_out=args['<STR_LIT>'],<EOL>cache_dir=args['<STR_LIT>'],<EOL>fetcher=args['<STR_LIT>'],<EOL>)<EOL><DEDENT><DEDENT>except (<EOL>exception.InvalidInfoFormat,<EOL>KeyboardInterrupt,<EOL>) as ex:<EOL><INDENT>code = getattr(ex, '<STR_LIT>', code)<EOL>print("<STR_LIT>")<EOL>print(str(ex) or type(ex).__name__)<EOL><DEDENT>return code<EOL>
distroinfo Command-Line Interface