summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-05 22:20:27 +0100
committerskal <pascal.massimino@gmail.com>2026-03-05 22:20:27 +0100
commitb7fc4aa9a6bd15ce9780d46a425971d523c10b92 (patch)
treed1d9c6ef0f0b1ff2f4ffdcd945732320ef14e709 /tools
parent98def09292f62ae0de17c1f60a2599c6e0b4fbce (diff)
fix(spectool): rename --wav flag to wav subcommand for consistency
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/spectool.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/spectool.cc b/tools/spectool.cc
index 59a56b5..a9d2bd1 100644
--- a/tools/spectool.cc
+++ b/tools/spectool.cc
@@ -439,7 +439,7 @@ void print_usage() {
" test_gen <output.spec> Generate a test "
"spectrogram.\n");
printf(
- " --wav <input.spec> <output.wav> Decode spectrogram to mono "
+ " wav <input.spec> <output.wav> Decode spectrogram to mono "
"WAV.\n");
printf("\nOptions for 'analyze':\n");
printf(
@@ -499,9 +499,9 @@ int main(int argc, char** argv) {
return 1;
}
return test_gen(argv[2]);
- } else if (strcmp(command, "--wav") == 0) {
+ } else if (strcmp(command, "wav") == 0) {
if (argc < 4) {
- printf("Error: '--wav' requires input .spec and output .wav files.\n");
+ printf("Error: 'wav' requires input .spec and output .wav files.\n");
print_usage();
return 1;
}