mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 03:38:03 +01:00
Suggest --overwrite option when dest file exists
This commit is contained in:
@@ -56,6 +56,7 @@ class RecordCommand(Command):
|
||||
|
||||
elif os.stat(self.filename).st_size > 0 and not append:
|
||||
self.print_error("%s already exists, aborting" % self.filename)
|
||||
self.print_error("use --overwrite option if you want to overwrite existing recording")
|
||||
self.print_error("use --append option if you want to append to existing recording")
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user