.TP 8
.B \-\-help
Print help
+.TP 8
+.B \-\-once
+Only replay the recording once, then exit.
+.TP 8
+.B \-\-replay-after=s
+Replay the recording after waiting for s seconds. This replaces the default
+interactive prompt to start the replay.
.SH NOTES
.PP
This tool replays events from a recording through the the kernel and is
return
while True:
- input("Hit enter to start replaying")
+ if args.replay_after >= 0:
+ time.sleep(args.replay_after)
+ else:
+ input("Hit enter to start replaying")
processes = []
for d in devices:
del processes
+ if args.once:
+ break
+
def create_device_quirk(device):
try:
type=str,
help="Path to device recording",
)
+ parser.add_argument(
+ "--replay-after",
+ type=int,
+ default=-1,
+ help="Automatically replay once after N seconds",
+ )
+ parser.add_argument(
+ "--once",
+ action="store_true",
+ default=False,
+ help="Stop and exit after one replay",
+ )
parser.add_argument("--verbose", action="store_true")
args = parser.parse_args()