add option to set the saver / root tiddler on 'tzk listen'
This commit is contained in:
parent
295f61299a
commit
20c4d09b7d
@ -91,6 +91,12 @@ class ListenCommand(CliCommand):
|
|||||||
help="Host to listen on.",
|
help="Host to listen on.",
|
||||||
default=str(cm().listen_host or "127.0.0.1"),
|
default=str(cm().listen_host or "127.0.0.1"),
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--root-tiddler",
|
||||||
|
metavar="TIDDLER",
|
||||||
|
help="Saver tiddler to use (for LazyLoading).",
|
||||||
|
default=str(cm().listen_root_tiddler or "$:/core/save/all"),
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-p", "--port",
|
"-p", "--port",
|
||||||
metavar="PORT",
|
metavar="PORT",
|
||||||
@ -120,7 +126,8 @@ class ListenCommand(CliCommand):
|
|||||||
f"host={args.host}",
|
f"host={args.host}",
|
||||||
f"port={args.port}",
|
f"port={args.port}",
|
||||||
f"username={args.username}",
|
f"username={args.username}",
|
||||||
f"password={args.password}")
|
f"password={args.password}",
|
||||||
|
f"root-tiddler={args.root_tiddler}")
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
Loading…
Reference in New Issue
Block a user