Asciinema: [Feature request][v2] Please add a `--overwrite` parameter

Created on 9 Dec 2017  ·  3Comments  ·  Source: asciinema/asciinema

I've started to give a workout to v2.

One smallish thing, which still is able to annoy me:

  1. I want to record to an existing file. However, I do not want to append to it, but to overwrite it. I get a warning asciinema: /path/file.asc already exists, aborting. (This, of course, is a good thing to have -- we do not want to blindly overwrite files.)

  2. That means I have to use another shell command (rm /path/file.asc) in between of test recordings. It would be more convenient if I could just add a --overwrite parameter to do that instead, keeping the existing good default to not overwrite existing files.

Most helpful comment

I would like to work on this issue.
What I plan to do is:
1) add new command line argument in __main__.py (overwrite flag)
2) use os.remove(filename) in record.py if file already exists and overwrite flag is used

All 3 comments

I had a hunch this will be needed sooner or later :)

I would like to work on this issue.
What I plan to do is:
1) add new command line argument in __main__.py (overwrite flag)
2) use os.remove(filename) in record.py if file already exists and overwrite flag is used

Thanks, @AMR-KELEG & @sickill !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abaykan picture abaykan  ·  10Comments

lukehinds picture lukehinds  ·  5Comments

pfalcon picture pfalcon  ·  4Comments

yuvalif picture yuvalif  ·  10Comments

Edo78 picture Edo78  ·  5Comments