(self, target, btc=False)
return parser.parse_args(args)
Mock command-line argument
Mock command-line argument
Mock command - line argument
def gen_args(self, target, btc=False):
        """Mock command-line argument"""
        logging.basicConfig(level=logging.DEBUG)
        parser = argparse.ArgumentParser()
        subparsers = parser.add_subparsers()
        dependencies.subparser(subparsers)
        args = ["deps", "-y", "install", "--target", target]
        if (btc):
            args.append("--btc")
        return parser.parse_args(args)
def gen_args ( self , target , btc = False ) : logging . basicConfig ( level = logging . DEBUG ) parser = argparse . ArgumentParser ( ) subparsers = parser . add_subparsers ( ) dependencies . subparser ( subparsers ) args = [ "deps" , "-y" , "install" , "--target" , target ] if ( btc ) : args . append ( "--btc" ) return parser . parse_args ( args )