|
|
|
|
@ -30,10 +30,10 @@ def set_password(args):
|
|
|
|
|
def main(argv):
|
|
|
|
|
parser = argparse.ArgumentParser(argv[0])
|
|
|
|
|
subparsers = parser.add_subparsers()
|
|
|
|
|
parser_password = subparsers.add_parser('password', help='create soneira peebles dataset')
|
|
|
|
|
parser_password = subparsers.add_parser('password', help='sets a password for your notebook server')
|
|
|
|
|
parser_password.add_argument("password", help="password to set, if not given, a password will be queried for (NOTE: this may not be safe)",
|
|
|
|
|
nargs="?")
|
|
|
|
|
parser_password.add_argument("--quiet", help="Supress messages", action="store_true")
|
|
|
|
|
parser_password.add_argument("--quiet", help="suppress messages", action="store_true")
|
|
|
|
|
parser_password.set_defaults(function=set_password)
|
|
|
|
|
args = parser.parse_args(argv[1:])
|
|
|
|
|
args.function(args)
|
|
|
|
|
|