docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
---
|
2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 06:44:58 +08:00
|
|
|
Long: list-only
|
|
|
|
Short: l
|
2024-03-16 19:39:01 +08:00
|
|
|
Protocols: FTP POP3 SFTP FILE
|
2016-11-16 06:44:58 +08:00
|
|
|
Help: List only mode
|
2020-05-12 19:25:47 +08:00
|
|
|
Added: 4.0
|
2024-03-16 19:39:01 +08:00
|
|
|
Category: ftp pop3 sftp file
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: boolean
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
See-also:
|
|
|
|
- quote
|
|
|
|
- request
|
|
|
|
Example:
|
|
|
|
- --list-only ftp://example.com/dir/
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
|
|
|
|
# `--list-only`
|
|
|
|
|
2024-03-12 17:34:58 +08:00
|
|
|
When listing an FTP directory, force a name-only view. Maybe particularly
|
|
|
|
useful if the user wants to machine-parse the contents of an FTP directory
|
|
|
|
since the normal directory view does not use a standard look or format. When
|
|
|
|
used like this, the option causes an NLST command to be sent to the server
|
|
|
|
instead of LIST.
|
2016-11-16 06:44:58 +08:00
|
|
|
|
|
|
|
Note: Some FTP servers list only files in their response to NLST; they do not
|
|
|
|
include sub-directories and symbolic links.
|
|
|
|
|
2024-02-27 17:35:28 +08:00
|
|
|
When listing an SFTP directory, this switch forces a name-only view, one per
|
|
|
|
line. This is especially useful if the user wants to machine-parse the
|
|
|
|
contents of an SFTP directory since the normal directory view provides more
|
|
|
|
information than just filenames.
|
2023-08-08 20:55:43 +08:00
|
|
|
|
2016-11-16 06:44:58 +08:00
|
|
|
When retrieving a specific email from POP3, this switch forces a LIST command
|
|
|
|
to be performed instead of RETR. This is particularly useful if the user wants
|
2021-07-19 09:51:43 +08:00
|
|
|
to see if a specific message-id exists on the server and what size it is.
|
2016-11-16 06:44:58 +08:00
|
|
|
|
2024-03-16 19:39:01 +08:00
|
|
|
For FILE, this option has no effect yet as directories are always listed in
|
|
|
|
this mode.
|
|
|
|
|
2021-07-19 09:51:43 +08:00
|
|
|
Note: When combined with --request, this option can be used to send a UIDL
|
2016-11-16 06:44:58 +08:00
|
|
|
command instead, so the user may use the email's unique identifier rather than
|
2021-07-19 09:51:43 +08:00
|
|
|
its message-id to make the request.
|