diff --git a/app/commands/file.py b/app/commands/file.py index 55323b7f..2e0e2263 100644 --- a/app/commands/file.py +++ b/app/commands/file.py @@ -77,7 +77,7 @@ def cli(): @click.option( '-m', '--upload-message', - default='', + default=None, required=False, help=file_help.file_help_page(file_help.FileHELP.FILE_UPLOAD_M), show_default=True, @@ -103,7 +103,7 @@ def cli(): '-td', default=1, required=False, - help='The number of thread for upload a file', + help='The number of threads for uploading a file.', show_default=True, ) @click.option( @@ -111,7 +111,7 @@ def cli(): '-o', default='./manifest.json', required=False, - help='The output path for the manifest file of resumable upload', + help='The output path for the manifest file of resumable upload.', show_default=True, ) @doc(file_help.file_help_page(file_help.FileHELP.FILE_UPLOAD)) diff --git a/app/resources/custom_help.py b/app/resources/custom_help.py index a3d3122f..03407b8f 100644 --- a/app/resources/custom_help.py +++ b/app/resources/custom_help.py @@ -37,25 +37,26 @@ class HelpPage: 'FILE_SYNC': 'Download files/folders from a given Project/folder/file in core zone.', 'FILE_UPLOAD': 'Upload files/folders to a given Project path.', 'FILE_RESUME': 'Resume the upload process with given manifest file.', - 'FILE_Z': 'Target Zone (i.e., core/greenroom) [default: greenroom]', + 'FILE_Z': 'Target Zone (i.e., core/greenroom).', 'FILE_ATTRIBUTE_P': 'Project Code', 'FILE_ATTRIBUTE_N': 'Attribute Template Name', 'FILE_SYNC_ZIP': 'Download files as a zip.', 'FILE_SYNC_I': 'Enable downloading by geid.', - 'FILE_SYNC_Z': 'Target Zone (i.e., core/greenroom)', - 'FILE_UPLOAD_P': 'Project folder path starting from Project code. (i.e., indoctestproject/user/folder)', - 'FILE_UPLOAD_A': 'File Attribute Template used for annotating files during upload.', - 'FILE_UPLOAD_T': ( - 'Add a tag to the file. This option could be used multiple times for adding multiple tags.' + 'FILE_SYNC_Z': 'Target Zone (i.e., core/greenroom).', + 'FILE_UPLOAD_P': 'Project folder path starting from Project Code. (i.e., indoctestproject/user/folder)', + 'FILE_UPLOAD_A': 'Add attributes to the file using a File Attribute Template.', + 'FILE_UPLOAD_T': 'Add tags to the file using a Tag file.', + 'FILE_UPLOAD_M': 'The message used to comment on the purpose of uploading your processed file.', + 'FILE_UPLOAD_S': ( + 'Project file path for identifying a source file when creating an upstream ' + 'file lineage node. Source files must exist in the Core zone.' ), - 'FILE_UPLOAD_M': 'The message used to comment on the purpose of uploading your processed file', - 'FILE_UPLOAD_S': 'The Project path of the source file of your processed files.', 'FILE_UPLOAD_PIPELINE': ( "The processed pipeline of your processed files. [only used with '--source' option]" ), 'FILE_UPLOAD_ZIP': 'Upload folder as a compressed zip file.', 'FILE_META': 'Download metadata file of a given file in target zone.', - 'FILE_META_Z': 'Target Zone (i.e., core/greenroom)', + 'FILE_META_Z': 'Target Zone (i.e., core/greenroom).', 'FILE_META_G': 'The location of general metadata file', 'FILE_META_A': 'The location of attribute metadata file', 'FILE_META_T': 'The location of tag metadata file',