@@ -607,7 +607,6 @@ def run(self):
607607 's3_handler' : [s3handler ]}
608608
609609 files = command_dict ['setup' ]
610-
611610 while self .instructions :
612611 instruction = self .instructions .pop (0 )
613612 file_list = []
@@ -794,7 +793,7 @@ def add_verify_ssl(self, parsed_globals):
794793CMD_DICT = {'cp' : {'options' : {'nargs' : 2 },
795794 'params' : ['dryrun' , 'quiet' , 'recursive' ,
796795 'include' , 'exclude' , 'acl' , 'follow-symlinks' ,
797- 'no-guess-mime-type' ,
796+ 'no-follow-symlinks' , 'no- guess-mime-type' ,
798797 'sse' , 'storage-class' , 'grants' ,
799798 'website-redirect' , 'content-type' ,
800799 'cache-control' , 'content-disposition' ,
@@ -803,6 +802,7 @@ def add_verify_ssl(self, parsed_globals):
803802 'mv' : {'options' : {'nargs' : 2 },
804803 'params' : ['dryrun' , 'quiet' , 'recursive' ,
805804 'include' , 'exclude' , 'acl' , 'follow-symlinks' ,
805+ 'no-follow-symlinks' ,
806806 'sse' , 'storage-class' , 'grants' ,
807807 'website-redirect' , 'content-type' ,
808808 'cache-control' , 'content-disposition' ,
@@ -815,6 +815,7 @@ def add_verify_ssl(self, parsed_globals):
815815 'params' : ['dryrun' , 'delete' , 'exclude' ,
816816 'include' , 'quiet' , 'acl' , 'grants' ,
817817 'no-guess-mime-type' , 'follow-symlinks' ,
818+ 'no-follow-symlinks' ,
818819 'sse' , 'storage-class' , 'content-type' ,
819820 'cache-control' , 'content-disposition' ,
820821 'content-encoding' , 'content-language' ,
@@ -841,7 +842,11 @@ def add_verify_ssl(self, parsed_globals):
841842 'delete' : {'options' : {'action' : 'store_true' }},
842843 'quiet' : {'options' : {'action' : 'store_true' }},
843844 'force' : {'options' : {'action' : 'store_true' }},
844- 'follow-symlinks' : {'options' : {'action' : 'store_true' }},
845+ 'follow-symlinks' : {'options' : {'action' : 'store_true' ,
846+ 'default' : True }},
847+ 'no-follow-symlinks' : {'options' : {'action' : 'store_false' ,
848+ 'dest' : 'follow_symlinks' ,
849+ 'default' : True }},
845850 'no-guess-mime-type' : {'options' : {'action' : 'store_false' ,
846851 'dest' : 'guess_mime_type' ,
847852 'default' : True }},
0 commit comments