jesseduffield / horcrux

Split your file into encrypted fragments so that you don't need to remember a passcode
MIT License
4.53k stars 116 forks source link

Split number of files as argument #2

Closed proyb6 closed 4 years ago

proyb6 commented 4 years ago

It's prefer to set number of files to be split as argument Instead of a question.

-number 33

jesseduffield commented 4 years ago

I've added an -n flag for this, as well as a -t flag for setting the threshold. I'd prefer to use a package like flaggy to make it a little nicer (accepting different flag names for the same variable, not caring about where positional args are stored) but I don't want to have any dependencies (and I'm slightly lazy) so I'm just using -n for now (and keeping the prompt if you don't use the flag)