Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a number of output options to bin/limgur.
Specifically, when uploading an image, you can choose which pieces of information get printed out. For instance, limgur -u foo.jpg -f fi will print the original filename, followed by the hotlinkable image url on the next line. In addition, the -o flag allows you to set an output medium: plaintext, titles, bbcode or html. Titles will present the user with labels indicating which line is what (and thus is the default). bbcode and html present images wrapped in the appropriate image tags and anchors in anchor tags, while leaving other things (like delete hashes) alone. Lastly, -q prevents all output to STDOUT, and -Q prevents all output to either STDOUT or STDERR.
- Loading branch information
1 parent
2f867d9
commit eb594be
Showing
3 changed files
with
165 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters