diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2025-08-06 18:48:37 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2025-08-09 00:39:43 +0100 |
commit | 11a99f14c0af78c9ca9e3ca9e0d56647727feadd (patch) | |
tree | 83b4a3baef8a88c87884b9f563bf9fd3dae6ba04 /klippy/klippy.py | |
parent | 8eab4299c93014613dbadfee6770535b99d48746 (diff) | |
download | kutter-11a99f14c0af78c9ca9e3ca9e0d56647727feadd.tar.gz kutter-11a99f14c0af78c9ca9e3ca9e0d56647727feadd.tar.xz kutter-11a99f14c0af78c9ca9e3ca9e0d56647727feadd.zip |
Add a --runtime-config option for SAVE_CONFIG
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r-- | klippy/klippy.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py index 757a2efc..83a962fa 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -308,6 +308,12 @@ def main(): help="api server unix domain socket filename", ) opts.add_option( + "-R", + "--runtime-config", + default="/var/run/klipper/run.cfg", + help="path to where SAVE_CONFIG should store the runtime configuration", + ) + opts.add_option( "-l", "--logfile", dest="logfile", help="write log to file instead of stderr" ) opts.add_option( @@ -392,6 +398,7 @@ def main(): extra_git_desc += "\nTracked URL: %s" % (git_info["url"]) start_args["software_version"] = git_vers start_args["cpu_info"] = util.get_cpu_info() + start_args["runtime_config"] = options.runtime_config if bglogger is not None: versions = "\n".join( [ |