Commit Graph

157 Commits

Author SHA1 Message Date
Frédéric Mangano-Tarumi
1d6ca8fc59 write the output to a temporary file 2018-12-02 16:20:40 -05:00
Frédéric Mangano-Tarumi
a74ea34352 introduce partial files 2018-12-02 12:12:58 -05:00
Frédéric Mangano-Tarumi
289391a9df more robust tests for input/output equality 2018-12-02 10:45:36 -05:00
Frédéric Mangano-Tarumi
5860902084 isolate the process function to the cli module
Its interface is not good enough to be exposed.
2018-12-02 10:10:40 -05:00
Frédéric Mangano-Tarumi
614bd6379b inplace -> in_place 2018-12-01 17:39:27 -05:00
Frédéric Mangano-Tarumi
1e69e89ff9 t: check a few cases of successful option parsing 2018-12-01 17:36:58 -05:00
Frédéric Mangano-Tarumi
7189d63c20 check for duplicate options 2018-12-01 17:23:38 -05:00
Frédéric Mangano-Tarumi
d67ce423d1 parse_options: return the error message in the status 2018-12-01 13:26:22 -05:00
Frédéric Mangano-Tarumi
6f290702a8 catch getopt's errors 2018-12-01 13:03:44 -05:00
Frédéric Mangano-Tarumi
067c9240c3 proces_options -> parse_options
The function is not supposed to have side effects anymore.
2018-12-01 12:02:19 -05:00
Frédéric Mangano-Tarumi
90bcf0bd71 process_options: don't deduce path_out from inplace 2018-12-01 11:51:00 -05:00
Frédéric Mangano-Tarumi
b60183c0ca calling opustags without arguments is now an error
Get rid of the exit_now status and simplify the help display code.
2018-12-01 11:36:03 -05:00
Frédéric Mangano-Tarumi
2b92ee0ce1 finalize 1.2.0 2018-11-25 12:13:30 -05:00
Frédéric Mangano-Tarumi
c4acca18d8 review the --help message 2018-11-24 20:02:24 -05:00
Frédéric Mangano-Tarumi
b7e133d6ba add exmaple to the man page 2018-11-24 12:05:55 -05:00
Frédéric Mangano-Tarumi
5b5b67a0df clean-up the includes 2018-11-24 11:56:43 -05:00
Frédéric Mangano-Tarumi
80a4b2ccf6 rewrite ot::read_comments with getline 2018-11-24 11:44:15 -05:00
Frédéric Mangano-Tarumi
d1299360de smart ot::file handle 2018-11-24 11:33:04 -05:00
Frédéric Mangano-Tarumi
bfa46273b9 fix ot::read_comments when handling empty lines 2018-11-24 11:33:04 -05:00
Frédéric Mangano-Tarumi
26411d3843 t: test ot::read_comments 2018-11-24 11:33:04 -05:00
Frédéric Mangano-Tarumi
af61b01448 substitute the @-markers in the man page 2018-11-21 21:41:55 -05:00
Frédéric Mangano-Tarumi
a043e74e14 review the user doc 2018-11-21 21:40:08 -05:00
Frédéric Mangano-Tarumi
20dc8d0fa2 add a changelog 2018-11-21 21:02:42 -05:00
Frédéric Mangano-Tarumi
407c12c7ac review the overall code documentation 2018-11-19 19:23:11 -05:00
Frédéric Mangano-Tarumi
8949094203 run: return better status 2018-11-18 11:43:45 -05:00
Frédéric Mangano-Tarumi
ddb838ac81 process: return better errors 2018-11-18 11:43:29 -05:00
Frédéric Mangano-Tarumi
62d56aafff accompany returned status codes with a message 2018-11-18 11:04:11 -05:00
Frédéric Mangano-Tarumi
b9a0ece567 include the error message in ot::status 2018-11-18 10:42:27 -05:00
Frédéric Mangano-Tarumi
5445c5bc7c t: test the ogg writer 2018-11-18 10:15:49 -05:00
Frédéric Mangano-Tarumi
cc83a438ae t: tests for ogg_reader 2018-11-18 09:45:11 -05:00
Frédéric Mangano-Tarumi
6ed0326a74 t: copy gobble.opus to the binary directory 2018-11-18 09:34:22 -05:00
Frédéric Mangano-Tarumi
0980b35ecd polish the interface of the opus module 2018-11-17 17:34:51 -05:00
Frédéric Mangano-Tarumi
2670b661a8 don't create null ogg writers 2018-11-17 17:17:59 -05:00
Frédéric Mangano-Tarumi
c604fdb667 encapsulate ogg_writer 2018-11-17 17:07:14 -05:00
Frédéric Mangano-Tarumi
8334a5617f polish ogg_reader 2018-11-17 16:10:20 -05:00
Frédéric Mangano-Tarumi
cdd591c0c1 really close the files before moving them 2018-11-17 15:40:57 -05:00
Frédéric Mangano-Tarumi
e22a1d381a hide the reader's stream in the ogg module 2018-11-16 19:10:14 -05:00
Frédéric Mangano-Tarumi
121220ea05 rewrite run with RAII in mind 2018-11-16 18:29:40 -05:00
Frédéric Mangano-Tarumi
b6c7a90d92 move run into the cli module
Now the code has been wholly reorganized!
2018-11-14 20:15:30 -05:00
Frédéric Mangano-Tarumi
2e88bdc207 t: cli.t -> opustags.t
It reflects the module it tests.
2018-11-14 19:56:51 -05:00
Frédéric Mangano-Tarumi
22bfd05b36 move the main loop to ot::process 2018-11-14 19:56:23 -05:00
Frédéric Mangano-Tarumi
8a5b80e075 process_tags function in the main module 2018-11-14 18:51:04 -05:00
Frédéric Mangano-Tarumi
e41cf918d1 RAII interface for dynamic ogg packets 2018-11-13 20:46:30 -05:00
Frédéric Mangano-Tarumi
82ff7f7751 validate_identification_header: take the ogg_packet 2018-11-13 18:51:28 -05:00
Frédéric Mangano-Tarumi
351d6149c9 identification header check in opus.cc 2018-11-13 18:45:44 -05:00
Frédéric Mangano-Tarumi
9ed2b82b4a error: static assertion of the list of messages 2018-11-13 18:35:34 -05:00
Frédéric Mangano-Tarumi
1866dbd1f0 call stderror for ot::status:standard_error 2018-11-13 18:15:43 -05:00
Frédéric Mangano-Tarumi
5ff99b620c ot::error_message 2018-11-13 18:04:26 -05:00
Frédéric Mangano-Tarumi
b0e8813be6 t: introduce tap.h 2018-11-13 18:04:08 -05:00
Frédéric Mangano-Tarumi
c17ad7853c move print_comments in cli, next to read_comments 2018-11-11 12:04:16 -05:00