Example #1
0
def add_arguments(parser):
    parser.add_argument("-p", "--port", action="store", type=int,
                        default=config.DEFAULT_PORT, help="listening TCP port")
    parser.add_argument("--passwd-path", action="store", type=str,
                        default=prefs.passwd_path(),
                        help="path to passwd file")
    parser.add_argument("-n", "--no-passwd", action="store_true",
                        help="do not check passwords")
    parser.add_argument("-l", "--log-path", action="store", type=str,
                        help="path to logfile")
Example #2
0
def add_arguments(parser):
    parser.add_argument("-p",
                        "--port",
                        action="store",
                        type=int,
                        default=config.DEFAULT_PORT,
                        help="listening TCP port")
    parser.add_argument("--passwd-path",
                        action="store",
                        type=str,
                        default=prefs.passwd_path(),
                        help="path to passwd file")
    parser.add_argument("-n",
                        "--no-passwd",
                        action="store_true",
                        help="do not check passwords")
    parser.add_argument("-l",
                        "--log-path",
                        action="store",
                        type=str,
                        help="path to logfile")
Example #3
0
def test_passwd_path():
    assert prefs.passwd_path() == os.path.expanduser(
        "~/.slugathon/globalprefs/passwd")
Example #4
0
def test_passwd_path():
    assert prefs.passwd_path() == os.path.expanduser(
        "~/.slugathon/globalprefs/passwd")