tupdated help description - cross-stitch - interactively turn images into patte… | |
git clone git://src.adamsgaard.dk/cross-stitch | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 2b1f83e82edbe8520b5fb058b505c6edd7fa1830 | |
parent 2a467544ba8dc18921d1e35d598c48c591d2793b | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 13 Feb 2014 22:24:42 +0100 | |
updated help description | |
Diffstat: | |
M README.rst | 11 ++++++----- | |
M cross-stitch.py | 6 +++--- | |
M generate-readme.sh | 2 ++ | |
3 files changed, 11 insertions(+), 8 deletions(-) | |
--- | |
diff --git a/README.rst b/README.rst | |
t@@ -29,18 +29,17 @@ Usage | |
----- | |
-usage: cross-stitch.py [-h] --infile FILENAME --outfile FILENAME | |
- [--width WIDTH] | |
+usage: cross-stitch.py [-h] --infile file --outfile file [--width WIDTH] | |
Downsamples and modifies an image in order to create a pattern for cross | |
stitching. | |
optional arguments: | |
-h, --help show this help message and exit | |
- --infile FILENAME, -i FILENAME | |
+ --infile file, -i file | |
input image to process | |
- --outfile FILENAME, -o FILENAME | |
- save processed image as FILENAME | |
+ --outfile file, -o file | |
+ save processed image as file | |
--width WIDTH, -w WIDTH | |
canvas width, default value = 20 | |
t@@ -52,9 +51,11 @@ Example | |
.. image:: fiskeren.jpg | |
:scale: 50 % | |
:alt: Original image | |
+ :align: center | |
.. image:: fisker-pattern.png | |
:scale: 60 % | |
:alt: Cross stitching pattern | |
+ :align: center | |
diff --git a/cross-stitch.py b/cross-stitch.py | |
t@@ -13,10 +13,10 @@ program_description = \ | |
'''Downsamples and modifies an image in order to create a pattern for | |
cross stitching.''' | |
parser = argparse.ArgumentParser(description = program_description) | |
-parser.add_argument('--infile', '-i', metavar='FILENAME', type=str, nargs=1, | |
+parser.add_argument('--infile', '-i', metavar='file', type=str, nargs=1, | |
required=True, help='input image to process') | |
-parser.add_argument('--outfile', '-o', metavar='FILENAME', type=str, nargs=1, | |
- required=True, help='save processed image as FILENAME') | |
+parser.add_argument('--outfile', '-o', metavar='file', type=str, nargs=1, | |
+ required=True, help='save processed image as file') | |
parser.add_argument('--width', '-w', type=int, nargs=1, default=20, | |
help='canvas width, default value = 20') | |
#parser.add_argument('--n-colors', '-c', type=int, nargs=1, default=10, | |
diff --git a/generate-readme.sh b/generate-readme.sh | |
t@@ -47,10 +47,12 @@ Example | |
.. image:: fiskeren.jpg | |
:scale: 50 % | |
:alt: Original image | |
+ :align: center | |
.. image:: fisker-pattern.png | |
:scale: 60 % | |
:alt: Cross stitching pattern | |
+ :align: center | |
" | |