Exemplo n.º 1
0
def parse_options():
    """
        Parse the command line options and return them. The command-line
        arguments are ignored, since we aren't accepting any.
    """
    parser = sxmain.create_default_option_parser(
            config_path='~/.samuraix/apps/yahiko_term/',
    )

    parser.add_option('', '--default-config', dest='print_default_config',
            help='print the default configuration to stdout',
            action='store_true',
            default=False,
    )

    parser.add_option('', '--prof', dest='profile',
            action='store_true', 
            default=False, 
            help='profile the application',
    )

    parser.add_option('-b', '--double-buf', dest='double_buf',
            default=False,
            action='store_true',
            help='use double buffering',
    )

    options, args = parser.parse_args()
    return options
Exemplo n.º 2
0
def parse_options():
    """
        Parse the command line options and return them. The command-line
        arguments are ignored, since we aren't accepting any.
    """
    parser = sxmain.create_default_option_parser(
            #config_path='~/.samuraix/apps/yahiko_statusbar/',
    )

    options, args = parser.parse_args()
    return options
Exemplo n.º 3
0
def parse_options():
    """
        Parse the command line options and return them. The command-line
        arguments are ignored, since we aren't accepting any.
    """
    parser = sxmain.create_default_option_parser(config_path="~/.samuraix/apps/yahiko_statusbar/")

    parser.add_option(
        "",
        "--default-config",
        dest="print_default_config",
        help="print the default configuration to stdout",
        action="store_true",
        default=False,
    )

    options, args = parser.parse_args()
    return options