CLI: fix option defaults and documentation

This commit is contained in:
xenofem 2022-05-24 22:10:01 -04:00
parent 0b9770aac4
commit 262914b0f5

View file

@ -54,8 +54,8 @@ async def send(paths, uri, password, lifetime):
exit(1)
parser = argparse.ArgumentParser(description="Upload files to transbeam")
parser.add_argument("-l", "--lifetime", type=int, default=1, help="Lifetime in days for files (default 10)")
parser.add_argument("-u", "--uri", type=str, default="wss://transbeam.link/upload", help="Websocket URI for transbeam")
parser.add_argument("-l", "--lifetime", type=int, default=7, help="Lifetime in days for files (default 7)")
parser.add_argument("-u", "--uri", type=str, default="wss://transbeam.link/upload", help="Websocket URI for transbeam (default wss://transbeam.link/upload)")
parser.add_argument("files", type=pathlib.Path, nargs="+", help="Files to upload")
async def main():