Closed Crossoverfan96 closed 2 years ago
That is very weird, it's working without problems on my machine. What shell are you using?
Try wrapping the two --cookie
arguments in quotes (i.e., --cookie "a" "abcd-1234-efgh"
). It may be the shell messing with the arguments because there are dashes in them, though it seems unlikely.
PS: the FALOCALREPO_DEBUG
flag was disabled with version 4, the log is printed automatically for every exception that isn't related to argument parsing because that is handled by click, or it should be at least.
I'm using bash on debian
I tried putting the arguments in quotes with no result t
I really have no clue what the problem could be.
In the meantime, you can run the program from a Python interpreter:
from falocalrepo.console import app
app.main(["config", "cookies", "--cookie", "a", "abcd-1234-efgh", "--cookie", "b", "abcd-1234-efgh"], standalone_mode=False)
Or:
from falocalrepo.console import app
app.main("config cookies --cookie a abcd-1234-efgh --cookie b abcd-1234-efgh".split(" "), standalone_mode=False)
The standalone_mode
argument makes sure it won't close the Python interpreter.
Just as an experiment, could you try running this short script as a Python file with the exact same arguments you were using for falocalrepo?
from sys import argv
print(argv)
Just to make sure that the argument array is correct since click uses it in background.
Hey, did running the program in the interpreter work? And the argv
test? :)
I'm closing this issues has there has been no update and the error could not be reproduced.
If there is any new information, add a comment and I will investigate it further :)
Version
Latest
What happened?
I was attempting to put in my cookie values to download a gallery and it just ain't accepting the command.I'm not sure if I put it in wrong or what but it ain't going through
How to reproduce the bug?
attempt to put in cookies as shown in the readme
Relevant log output
No response