diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-06-30 00:09:02 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-06-30 00:09:02 +0200 |
| commit | bbead404341de0db027b32fe2b161c0194420c08 (patch) | |
| tree | e6712d4b0466d36ae727695b70003e5aebef3218 /src_py | |
| parent | bbd20d9104a3bd138ad72e5badcf50bfe6acc1a9 (diff) | |
WIP native implementation
Diffstat (limited to 'src_py')
| -rw-r--r-- | src_py/opcut/libopcut.py | 2 | ||||
| -rw-r--r-- | src_py/opcut/main.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src_py/opcut/libopcut.py b/src_py/opcut/libopcut.py index b5531aa..d5120cd 100644 --- a/src_py/opcut/libopcut.py +++ b/src_py/opcut/libopcut.py @@ -31,7 +31,7 @@ def calculate(method: common.Method, raise common.UnresolvableError() if ret != _lib.OPCUT_SUCCESS: - raise Exception() + raise Exception("calculation error") used = list(_decode_used(params, native_used)) unused = list(_decode_unused(params, native_unused)) diff --git a/src_py/opcut/main.py b/src_py/opcut/main.py index 958e135..58b3060 100644 --- a/src_py/opcut/main.py +++ b/src_py/opcut/main.py @@ -41,7 +41,7 @@ def create_argument_parser() -> argparse.ArgumentParser: '--output', metavar='PATH', type=Path, default=Path('-'), help=f"output result file path or - for stdout ({result_schema_id})") calculate.add_argument( - 'params', type=Path, default=Path('-'), + 'params', type=Path, default=Path('-'), nargs='?', help=f"input params file path or - for stdin ({params_schema_id})") generate = subparsers.add_parser('generate') |
