ouch icon indicating copy to clipboard operation
ouch copied to clipboard

flag to reenable smart outtput when -d/--dir is provided

Open HeathenHacker opened this issue 7 months ago • 3 comments

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)

HeathenHacker avatar May 23 '25 21:05 HeathenHacker

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?

ndtoan96 avatar Jun 01 '25 16:06 ndtoan96

exactly, just with other output directories when combined with the -d flag

HeathenHacker avatar Jun 05 '25 20:06 HeathenHacker

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...

marcospb19 avatar Jun 28 '25 01:06 marcospb19