Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Pass useful information via STDOUT #3442
Comments
|
You can specify the filename yourself with |
|
Use Can you tell us where you searched for this option? We'll add a note there. |
|
Ah, great. I found --get-filename and was using that: I ran youtube-dl --help and scanned the output for anything that looked Kevin Burke On Tue, Aug 5, 2014 at 8:51 AM, Philipp Hagemeister <
|
A common flow for me is something like
Currently I have to download the file, identify the filename as part of the output (
Destination: blah), then manually take action - it's impossible to predict the filename beforehand.It would be really nice if there was a flag that made all of the "Downloading webpage" etc information go to stderr, and the filename get printed to stdout, so you can pipe it to further programs or capture it in a shell script.
For reference, this is what curl does by default - the information about file transfer is sent to stderr so the downloaded webpage can be interacted with at the command line.