flag to reenable smart outtput when -d/--dir is provided
I personally preferred the way ouch worked before the behaviour of the dir option was changed, but I understand why it was changed. so I would like to suggest a new flag: "-s/--smart" (or something else), that when used enables smart output (i.e. ignored without a dir option, but in combination with one provides the old behaviour)
I personally preferred the way ouch worked before the behaviour of the dir option was changed, but I understand why it was changed. so I would like to suggest a new flag: "-s/--smart" (or something else), that when used enables smart output (i.e. ignored without a dir option, but in combination with one provides the old behaviour)
By smart output, do you mean the behavior where if there're multiple files/folders in the zip, they will be extracted to a folder with the zip name, else the only file/folder in the zip is extracted at the current path?
exactly, just with other output directories when combined with the -d flag
We could have a --smart-unpack and --no-smart-unpack. Perhaps --auto-flatten and --no-auto-flatten.
Or a flag that takes an yes/no/always/never argument, but, these can also be annoying...