cache:clear arguments are confusing
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: Windows 10
- Poetry version: 0.12.2
Issue
poetry cache:clear --help
Usage:
cache:clear [options] [--] <cache>
Arguments:
cache The name of the cache to clear.
Options:
--all Clear all caches.
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose[=VERBOSE] Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Clears poetry's cache.
It reads as if --all
and cache
name are mutually exclusive (instead of clearing the named cache, I clear all caches) but when I do poetry cache:clear --all
poetry cache:clear --all -vvv
[MissingArguments]
Not enough arguments
Exception trace:
C:\Users\epage.AMER\AppData\Roaming\.poetry\lib\poetry\_vendor\py2.7\cleo\application.py in run() at line 94
status_code = self.do_run(input_, output_)
C:\Users\epage.AMER\AppData\Roaming\.poetry\lib\poetry\console\application.py in do_run() at line 88
return super(Application, self).do_run(i, o)
C:\Users\epage.AMER\AppData\Roaming\.poetry\lib\poetry\_vendor\py2.7\cleo\application.py in do_run() at line 197
status_code = command.run(input_, output_)
C:\Users\epage.AMER\AppData\Roaming\.poetry\lib\poetry\console\commands\command.py in run() at line 77
return super(BaseCommand, self).run(i, o)
C:\Users\epage.AMER\AppData\Roaming\.poetry\lib\poetry\_vendor\py2.7\cleo\commands\base_command.py in run() at line 141
input_.validate()
C:\Users\epage.AMER\AppData\Roaming\.poetry\lib\poetry\_vendor\py2.7\cleo\inputs\input.py in validate() at line 68
raise MissingArguments('Not enough arguments')
cache:clear [--all] [--] <cache>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:73
- Comments:33 (8 by maintainers)
Top Results From Across the Web
What difficulties might arise from using mutable arguments to ...
My comment was wrong/misleading and does not relate to lru_cache , but to any attempt to create a caching function that works more ......
Read more >What is Cached Data? What does Clear Cache Mean and ...
In general terms, a cache (pronounced "cash") is a type of repository. You can think of a repository as a storage depot.
Read more >File size confusion] Clear gigabytes of cached Chrome ...
Nope, instead, you'll need to head into Chrome, tap the three dots at the top-right corner, then head to Settings > Site Settings...
Read more >How to Clear the Cache in Windows 10 - Alphr
1. In the bottom left corner of the desktop, select the Start menu (the Windows logo). 2. Go to the Settings icon. 3....
Read more >Clean up the cache API (stop overloading function arguments ...
Clean up the cache API (stop overloading function arguments, remove procedural wrappers). Closed (fixed). Project:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just for completeness, this issue is not resolved, nor just a documentation issue.
OS: Ubuntu 18.04.4 LTS Poetry: 1.0.3
“Accepted” solution:
As a user, this is a bit frustrating for issues to be automatically closed when the problem is unresponsiveness from the maintainers.