From f4205ef352a4fd5a49da1649dd9644ba07f39edb Mon Sep 17 00:00:00 2001 From: Ben Hagen Date: Sat, 2 Mar 2019 10:03:25 +0100 Subject: [PATCH] Unify options --- README.md | 8 ++++---- pycine/cli/pfs_raw.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f9fc34e..7ea4375 100644 --- a/README.md +++ b/README.md @@ -35,12 +35,12 @@ pip install git+https://github.com/ottomatic-io/pycine.git ### Changing the playback and timecode framerates ``` -pfs_meta set --playback_fps 60/1.001 --timecode_fps 60/1.001 A001C001_190302_16001.cine +pfs_meta set --playback-fps 60/1.001 --timecode_fps 60/1.001 A001C001_190302_16001.cine ``` You can also set metadata for multiple clips at once: ``` -pfs_meta set --playback_fps 24/1.001 --timecode_fps 24/1.001 *.cine +pfs_meta set --playback-fps 24/1.001 --timecode_fps 24/1.001 *.cine ``` ## Help @@ -86,8 +86,8 @@ $ pfs_raw --help Usage: pfs_raw [OPTIONS] CINE_FILE [OUT_PATH] Options: - --file_format [.png|.jpg|.tif] - --start_frame INTEGER + --file-format [.png|.jpg|.tif] + --start-frame INTEGER --count INTEGER --version Show the version and exit. --help Show this message and exit. diff --git a/pycine/cli/pfs_raw.py b/pycine/cli/pfs_raw.py index 48111da..f0270c8 100755 --- a/pycine/cli/pfs_raw.py +++ b/pycine/cli/pfs_raw.py @@ -19,8 +19,8 @@ def save(rgb_image, outfile): @click.command() -@click.option("--file_format", default=".png", type=click.Choice([".png", ".jpg", ".tif"])) -@click.option("--start_frame", default=1, type=click.INT) +@click.option("--file-format", default=".png", type=click.Choice([".png", ".jpg", ".tif"])) +@click.option("--start-frame", default=1, type=click.INT) @click.option("--count", default=1, type=click.INT) @click.argument("cine_file", type=click.Path(exists=True, readable=True, dir_okay=False, file_okay=True)) @click.argument("out_path", required=False, type=click.Path(exists=True, dir_okay=True, file_okay=False))