[ ] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
OS version and name: any
One needs to browse Poetry docs (which are not even online for 1.0 beta yet, or I couldn't find a link) or the source code to find out how to use the poetry export command, because the help text doesn't provide the list of available formats.
$ poetry export
[ValueError]
Invalid export format: None
$ poetry export --help
USAGE
poetry export [-f聽<...>] [-o聽<...>] [--without-hashes] [--dev] [-E聽<...>] [--with-credentials]
OPTIONS
-f (--format) Format to export to.
-o (--output) The name of the output file.
--without-hashes Exclude hashes from the exported file.
--dev Include development dependencies.
-E (--extras) Extra sets of dependencies to include. (multiple values allowed)
--with-credentials Include credentials for extra indices.
GLOBAL OPTIONS
-h (--help) Display this help message
-q (--quiet) Do not output any message
-v (--verbose) Increase the verbosity of messages: "-v" for normal output, "-vv" for more verbose output and "-vvv" for debug
-V (--version) Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n (--no-interaction) Do not ask any interactive question
$ poetry export -f anything
[ValueError]
Invalid export format: anything
In the current docs, the option -f is documented as:
--format (-f): The format to export to. Currently, onlyrequirements.txtis supported.
This should be in the command help too.
Hello @absassi,
thanks a lot for reporting. Must get lost somewhere. Will be fixed with https://github.com/sdispater/poetry/pull/1653.
fin swimmer
Most helpful comment
Hello @absassi,
thanks a lot for reporting. Must get lost somewhere. Will be fixed with https://github.com/sdispater/poetry/pull/1653.
fin swimmer