Skip to content

Commit

Permalink
Add version badge in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkanosis committed Mar 15, 2018
1 parent 4e473c0 commit b4f203e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2017 Jérémie Roquet <jroquet@arkanosis.net>
Copyright (C) 2017-2018 Jérémie Roquet <jroquet@arkanosis.net>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tifoto [![License](http://img.shields.io/badge/license-ISC-blue.svg)](/LICENSE)
# tifoto [![Version](https://img.shields.io/badge/version-v1.0.3--dev-orange.svg)](https://semver.org/spec/v2.0.0.html) [![License](http://img.shields.io/badge/license-ISC-blue.svg)](/LICENSE)

**tifoto** is a simple tool for photo mass-resizing for emails.

Expand Down Expand Up @@ -42,4 +42,4 @@ Please report bugs and feature requests on [GitHub issues](https://github.com/Ar

## License

tifoto is copyright (C) 2017 Jérémie Roquet <jroquet@arkanosis.net> and licensed under the ISC license.
tifoto is copyright (C) 2017-2018 Jérémie Roquet <jroquet@arkanosis.net> and licensed under the ISC license.
4 changes: 2 additions & 2 deletions tifoto
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ if __name__ == '__main__':
else:
gettext.install('tifoto', '/usr/share/locale')

if len(sys.argv) < 2:
if len(sys.argv) < 2 or sys.argv[1] in ['-h', '--help']:
print(_('Usage: {} <all photos to resize>').format(sys.argv[0].split(os.sep)[-1]), file=sys.stderr)
sys.exit(1)

if sys.argv[1] == '--version':
print(__version__)
print('tifoto v{}'.format(__version__))
else:
resize_photos(sys.argv[1:])

0 comments on commit b4f203e

Please sign in to comment.