Error: Got unexpected extra argument for --user #553
-
When I run the following in powershell I get - Error: Got unexpected extra argument ( --user user1 --user user2 --user user3 --user user4 --user user5 --user user6 --user user7 --user user8) ` python -m bdfr download $OutputPath " $userlist" --submitted -v --no-dupes --search-existing --folder-scheme '{REDDITOR}' --file-scheme '{TITLE}_{POSTID}` If I replace $userlist with --user user1 --user user2 --user user3 --user user4 --user user5 --user user6 --user user7 --user user8 the command works correctly. How do I get it to use the content of the variable? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
At a guess, it's because you have the quotes around $userlist in the command. This will input it as a single string and prevent splitting. You want the splitting, so it's causing the error. |
Beta Was this translation helpful? Give feedback.
At a guess, it's because you have the quotes around $userlist in the command. This will input it as a single string and prevent splitting. You want the splitting, so it's causing the error.