menu/lcdmenu.py
def create_arg_parser():
    """Create an argparse object for lcdmenu parameters"""
    from argparse import ArgumentParser
    parser = ArgumentParser(
        description="System control menu on HD44780 LCD panel")
    parser.add_argument("mode",
                        nargs="?",
                        choices=["simulate", "lcd", "install"],
                        default="simulate",
                        help="Choose how to execute this script, either to "
                             "<simulate> an lcd on the terminal, running on a "
                             "physical <lcd> or install the script as a service"
                        )
    return parser
Create an argparse object for lcdmenu parameters
Create an argparse object for lcdmenu parameters
Create an argparse object for lcdmenu parameters
def create_arg_parser():
    from argparse import ArgumentParser
    parser = ArgumentParser(
        description="System control menu on HD44780 LCD panel")
    parser.add_argument("mode",
                        nargs="?",
                        choices=["simulate", "lcd", "install"],
                        default="simulate",
                        help="Choose how to execute this script, either to "
                             "<simulate> an lcd on the terminal, running on a "
                             "physical <lcd> or install the script as a service"
                        )
    return parser
def create_arg_parser ( ) : from argparse import ArgumentParser parser = ArgumentParser ( description = "System control menu on HD44780 LCD panel" ) parser . add_argument ( "mode" , nargs = "?" , choices = [ "simulate" , "lcd" , "install" ] , default = "simulate" , help = "Choose how to execute this script, either to " "<simulate> an lcd on the terminal, running on a " "physical <lcd> or install the script as a service" ) return parser
Create an argparse object for lcdmenu parameters
Create an argparse object for lcdmenu parameters
"""Create an argparse object for lcdmenu parameters"""