From c871a996fd1673049d5df9ea03a5bdb05b4b4387 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Wed, 18 Sep 2024 21:07:58 +0200 Subject: [PATCH] ase/main: auto-open a log file in ~/.cache/anklang/ Signed-off-by: Tim Janik --- ase/main.cc | 35 ++++++++++++++++++++++++++++++----- ase/main.hh | 1 - 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/ase/main.cc b/ase/main.cc index 38440711..f01c3c77 100644 --- a/ase/main.cc +++ b/ase/main.cc @@ -17,6 +17,8 @@ #include #include #include +#include +#include #undef B0 // undo pollution from termios.h @@ -109,7 +111,6 @@ print_usage (bool help) printout (" --jsipc Print Javascript IPC messages\n"); printout (" --list-drivers Print PCM and MIDI drivers\n"); printout (" --list-tests List all test names\n"); - printout (" --log2file Enable logging to ~/.cache/anklang/ instead of stderr\n"); printout (" --norc Prevent loading of any rc files\n"); printout (" --play-autostart Automatically start playback of `project.anklang`\n"); printout (" --rand64 Produce 64bit random numbers on stdout\n"); @@ -119,6 +120,34 @@ print_usage (bool help) printout (" -P pcmdriver Force use of \n"); printout (" -o wavfile Capture output to OPUS/FLAC/WAV file\n"); printout (" -t