Closed ITAYC0HEN closed 2 years ago
Thanks for this! Two comments below.
On verbosity, it looks cleaner and more intuitive to follow the standard practice of multiple v
's for additional levels such as -v
, -vv
, -vvv
and -vvvv
respectively for the four levels.
On the file downloads, it is sufficient to update the value of DOWNL_PATH
in https://github.com/diogo-fernan/malsub/blob/master/malsub/core/meta.py#L8 with the user-provided path after validating it once (verify or create) in https://github.com/diogo-fernan/malsub/blob/master/malsub/core/main.py#L14 as opposed to in every download. No need to specify a download directory path in each service module as the abstraction provided by the writef
function (https://github.com/diogo-fernan/malsub/blob/master/malsub/common/rw.py#L41) makes it simpler.
What do you think?
On verbosity, it looks cleaner and more intuitive to follow the standard practice of multiple v's for additional levels such as -v, -vv, -vvv and -vvvv respectively for the four levels.
I am afraid that in such case, there is no way to silence the output via quiet mode. If the minimum option is -v
it already stands for 'verbose'.
On verbosity, it looks cleaner and more intuitive to follow the standard practice of multiple v's for additional levels such as -v, -vv, -vvv and -vvvv respectively for the four levels.
I am afraid that in such case, there is no way to silence the output via quiet mode. If the minimum option is
-v
it already stands for 'verbose'.
Right! How does [-Q | --quiet]
and -v[vv]
sound for you then?
that could work! :) will make it mutual exclusive so - Q won't be passed with -v
Hey! Thanks for a very nice tool :) The following pull request improves and implements the following features:
Better control for verbosity level The new implementation honors 4 levels of verbosity:
4 - Debug
I updated the docs and the usage guide to reflect this change. I considered omitting any kind of non-error output in Quiet mode, what do you think?
Example:
Support output directory for downloaded files Currently, users do not have a choice of where to save the downloaded files. To solve this, I created the
-O --output <dir>
CLI arg which the user can use to specify a directory to save the downloaded files in.Example: