def add_app_gen_options()

in uberpoet/commandlineutil.py [0:0]


    def add_app_gen_options(parser):
        app = parser.add_argument_group('Mock app generation options')
        app.add_argument(
            '--module_count', default=100, type=int, help="How many modules should be in a normal mock app type."),
        app.add_argument(
            '--big_module_count',
            default=3,
            type=int,
            help="How many big modules should be in a big/small mock app type."),
        app.add_argument(
            '--small_module_count',
            default=50,
            type=int,
            help="How many small modules should be in a big/small mock app type."),
        app.add_argument(
            '--swift_lines_of_code',
            default=1500000,  # 1.5 million lines of code
            type=int,
            help="Approximately how many lines of Swift code each mock app should have."),
        app.add_argument(
            '--objc_lines_of_code',
            default=0,
            type=int,
            help="Approximately how many lines of ObjC code each mock app should have."),
        app.add_argument(
            '--app_layer_count',
            default=10,
            type=int,
            help='How many module layers there should be in the layered mock app type.')

        dot = parser.add_argument_group('Dot file mock app config')
        dot.add_argument(
            '--dot_file_path',
            default='',
            type=str,
            help="The path to the dot file to create a mock module graph from.  This dot file for Buck can be "
            "created like so: `buck query \"deps(target)\" --dot > file.gv`.  Alternatively, you may use your own"
            "means to generate it for different project types.")
        dot.add_argument(
            '--dot_root_node_name',
            default='',
            type=str,
            help="The name of the root application node of the dot file, such as 'App'.")
        parser.add_argument(
            '--loc_json_file_path',
            default='',
            type=str,
            help="A JSON file used to provide module LOC data.  Only used when dot graph type is used to create "
            "modules with proportional LOC.  You may generate this file using `cloc` or another tool like `tokei`."
            "  The format of the file is expected to contain each module name as a key with a value denoting the LOC.")