Closed cookiengineer closed 6 years ago
Why are the flags start
and end
in the code, but help output says from
and to
? What's the difference? I was assuming start
and end
are the "overall file limitations" and not the frame I want to cut out from the file.
Link: https://github.com/cirocosta/asciinema-edit/blob/master/commands/cut.go#L68
When I try to use --start=
and --end=
I get the following errors:
[$] asciinema-edit cut --start=50.0 --end=537.0 install-whatever.cast
failed to decode cast from input: couldn't decode header: json: unknown field "idle_time_limit"
When I remove all JSON properties that come up in the first line of the .cast file ("title", "idle_time_limit") then the asciinema-edit binary fails with:
[$] asciinema-edit cut --start=50.0 --end=537.0 install-lycheejs.cast
failed to transform cast: couldn't find initial frame
Hey @cookiengineer ,
Thx for the feedback!
Regarding your last comment, I just filled #9 and for the --start
and --from
issue, I updated the CLI help (#10).
Internally, I use to
and from
everywhere, but I felt that in the CLI, from
and to
looked a bit weird, so I kept the flag parsing with what I thought was a better name and didn't rename it internally.
Please let me know if you still face such issues or if you spot something else that seems weird.
thx!
When I try to use asciinema-edit in order to cut out some unnecessary frames, I always get the same error.
I also tried out using
-from "50.0"
and-from="50.0"
syntax. All the same behaviours.