parameters: ()
return_statement: return parser.parse_args()
docstring: Parse command-line arguments
docstring_summary: Parse command-line arguments
docstring_tokens: Parse command - line arguments
function: def parse_args():
    """ Parse command-line arguments """
    parser = argparse.ArgumentParser(description='Check and report on Kudu API compatibility',
                                     formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    parser.add_argument('source',
                        help="The source revision to compare against. Likely the previous release tag.")
    parser.add_argument('destination',
                        help="The destination revision to compare against the source.")
    parser.add_argument('--only-incompatible', action='store_true',
                        help='Outputs only classes/methods that are binary incompatible. '
                             'If not given, all classes and methods are printed.')
    parser.add_argument('--error-on-binary-incompatibility', action='store_true',
                        help='Exit with an error if a binary incompatibility is detected.')
    parser.add_argument('--error-on-source-incompatibility', action='store_true',
                        help='Exit with an error if a source incompatibility is detected.')
    parser.add_argument("--force-download-deps", action='store_true',
                        help="Download dependencies (i.e. japicmp) even if they are already present")
    return parser.parse_args()
function_tokens: def parse_args ( ) : parser = argparse . ArgumentParser ( description = 'Check and report on Kudu API compatibility' , formatter_class = argparse . ArgumentDefaultsHelpFormatter ) parser . add_argument ( 'source' , help = "The source revision to compare against. Likely the previous release tag." ) parser . add_argument ( 'destination' , help = "The destination revision to compare against the source." ) parser . add_argument ( '--only-incompatible' , action = 'store_true' , help = 'Outputs only classes/methods that are binary incompatible. ' 'If not given, all classes and methods are printed.' ) parser . add_argument ( '--error-on-binary-incompatibility' , action = 'store_true' , help = 'Exit with an error if a binary incompatibility is detected.' ) parser . add_argument ( '--error-on-source-incompatibility' , action = 'store_true' , help = 'Exit with an error if a source incompatibility is detected.' ) parser . add_argument ( "--force-download-deps" , action = 'store_true' , help = "Download dependencies (i.e. japicmp) even if they are already present" ) return parser . parse_args ( )