Skip to content

Commit 02b3ab5

Browse files
Improve command line interface (#9)
closes #2 #3 #4 * remove python 2 compability * install CLI in user data path * made preview optional * store_true, store_false for boolean inputs * removed dublicated 'dest' parameters * bump version * Update README.md
1 parent 367686f commit 02b3ab5

5 files changed

Lines changed: 149 additions & 107 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ panorama = stitcher.stitch(["img1.jpg", "img2.jpg", "img3.jpg"])
3030

3131
```
3232

33-
or using the [command line
34-
tool](https://github.com/lukasalexanderweber/stitching/blob/main/stitching_tool.py)
33+
or using the command line interface ([cli](https://github.com/lukasalexanderweber/stitching/tree/main/stitching/cli/stitch.py)) which is available after installation
3534

3635
```bash
37-
python stitching_tool.py -h
38-
python stitching_tool.py img1.jpg img2.jpg img3.jpg
36+
stitch -h
37+
stitch img1.jpg img2.jpg img3.jpg
3938
```
4039

4140
## Tutorial

setup.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ install_requires =
2323
include_package_data = True
2424
zip_safe = False
2525

26+
[options.entry_points]
27+
console_scripts =
28+
stitch = stitching.cli.stitch:main
29+
2630
[options.packages.find]
27-
include = stitching
2831
exclude = tests

stitching/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .stitcher import Stitcher
22

3-
__version__ = "0.1.0"
3+
__version__ = "0.2.0"

stitching/cli/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)