@@ -16,13 +16,13 @@ def parse():
16
16
optional = parser .add_argument_group ('optional' )
17
17
optional .add_argument ('-l' , '--list' , action = 'store_true' , help = 'Only print snapshots (opt range in y)' )
18
18
optional .add_argument ('-e' , '--explicit' , action = 'store_true' , help = 'Search only for the explicit given url' )
19
- optional .add_argument ('-o' , '--output' , type = str , help = 'Output folder' )
19
+ optional .add_argument ('-o' , '--output' , type = str , help = 'Output folder defaults to current directory ' )
20
20
optional .add_argument ('-r' , '--range' , type = int , help = 'Range in years to search' )
21
21
optional .add_argument ('--start' , type = int , help = 'Start timestamp format: YYYYMMDDhhmmss' )
22
22
optional .add_argument ('--end' , type = int , help = 'End timestamp format: YYYYMMDDhhmmss' )
23
23
24
24
special = parser .add_argument_group ('special' )
25
- special .add_argument ('--csv' , action = 'store_true ' , help = 'Save a csv file with the list of snapshots inside the output folder' )
25
+ special .add_argument ('--csv' , type = str , nargs = '? ' , const = True , help = 'Save a csv file on a given path or defaults to the output folder' )
26
26
special .add_argument ('--no-redirect' , action = 'store_true' , help = 'Do not follow redirects by archive.org' )
27
27
special .add_argument ('--verbosity' , type = str , default = "standard" , choices = ["standard" , "progress" , "json" ], help = 'Verbosity level' )
28
28
special .add_argument ('--retry' , type = int , default = 0 , metavar = "X-TIMES" , help = 'Retry failed downloads (opt tries as int, else infinite)' )
0 commit comments