moonshadow565 / ritobin

MIT License
26 stars 4 forks source link

Suggestion - Could u support this? #5

Closed Neinndall closed 1 year ago

Neinndall commented 1 year ago

ritobin_cli.exe *.bin %%~na.txt

the "*" to get all the bin files in the directory and "%%~na" to rename them with the name of the bin.

moonshadow565 commented 1 year ago

This is already supported you just have to place your bin files in same directory and pass directory path.

./ritobin_cli --help                                                                                                                        master
help called
Usage: ritobin [options] input output 

Positional arguments:
input                   input file or directory[Required]
output                  output file or directory

Optional arguments:
-h --help               show this help message and exit
-k --keep-hashed        do not run unhasher
-r --recursive          run on directory           # <=========
-v --verbose            log more
-i --input-format       format of input file
-o --output-format      format of output file
-d --dir-hashes         directory containing hashes

Formats:
        - text
        - json
        - info
        - bin
        - bin-legacy1
Neinndall commented 1 year ago

image

I have a bin in that directory.

moonshadow565 commented 1 year ago

You have to provide input and output folder paths i will not do any builtin globing. If you want globing support write a wrapper bash/batch script.