upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorShadman PC <iamanthonytony@gmail.com>2026-11-22 14:05:30 +0600
committerShadman PC <iamanthonytony@gmail.com>2026-11-22 14:05:30 +0600
commit0bb570958e5dc91b38321064ef4dd132ddd6df72 (patch)
treeb08f7d574bd2f835903a3e144cc210eaa2379490 /runtime/src/main.cpp
parentd3841c0c0ee41ec014699a985846c6dc76026440 (diff)
audio_wav.py: validate CLI --jobs and --out arguments in main()
audio_wav.py previously clamped --jobs below 1 silently to 1 instead of raising a command-line error, allowed main() only without arguments, and did not validate --out when pointing to an existing file before attempting to create directories. - main(argv=None) now accepts programmatic arguments. - --jobs < 1 is rejected with ap.error('--jobs must be at least 1'). - --out pointing to an existing file is rejected with ap.error. - Extracted FakeFfmpegDecodeTest in tests/test_audio_wav.py so fake decode checks run without requiring ffmpeg on PATH. - Added AudioWavCliTest covering all CLI validation error paths.
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions