(self, args_parser: argparse.ArgumentParser)
Add arguments to the parser
Add arguments to the parser
Add arguments to the parser
def create_args(self, args_parser: argparse.ArgumentParser) -> None:
        """Add arguments to the parser"""
        group = args_parser.add_argument_group("Circular Type Options")
        group.add_argument(
            "--circular-rings",
            dest="circular_rings",
            action="store_true",
            help="Draw distance rings.",
        )
        group.add_argument(
            "--circular-ring-color",
            dest="circular_ring_color",
            metavar="COLOR",
            type=str,
            default="darkgrey",
            help="Color of distance rings.",
        )
        group.add_argument(
            "--circular-ring-max-distance",
            dest="circular_ring_max_distance",
            metavar="DISTANCE KM",
            type=float,
            help="Maximum distance for scaling the track length.",
        )
def create_args ( self , args_parser : argparse . ArgumentParser ) -> None : group = args_parser . add_argument_group ( "Circular Type Options" ) group . add_argument ( "--circular-rings" , dest = "circular_rings" , action = "store_true" , help = "Draw distance rings." , ) group . add_argument ( "--circular-ring-color" , dest = "circular_ring_color" , metavar = "COLOR" , type = str , default = "darkgrey" , help = "Color of distance rings." , ) group . add_argument ( "--circular-ring-max-distance" , dest = "circular_ring_max_distance" , metavar = "DISTANCE KM" , type = float , help = "Maximum distance for scaling the track length." , )