1. mickael9
  2. gett-cli


mickael9  committed 225ace7

Do not set a share title by default and let ge.tt choose one for us (client side only)

  • Participants
  • Parent commits f7d0103
  • Branches default

Comments (0)

Files changed (1)

File gett_uploader.py

View file
     upload_group = parser.add_argument_group('Upload options')
     upload_group.add_argument('file', nargs='*', type=argparse.FileType('rb'), help="Name of a file to upload")
-    upload_group.add_argument('-t', dest='title', help='Title of the share (defaults to first file name)')
+    upload_group.add_argument('-t', dest='title', help='Title of the share')
     upload_group.add_argument('-s', dest='share', help='Name or URL of the share to upload to (defaults to a newly created one)')
     upload_group.add_argument('-P', dest='parallel_upload', action='store_true', help='Upload files in parallel rather than sequentially, the progress bars are displayed in ascending file size order')
             if args.title:
                 share = user.create_share(args.title)
-                share = user.create_share(os.path.basename(args.file[0].name))
+                share = user.create_share()
         uploads = []