andreafrancia / trash-cli

Command line interface to the freedesktop.org trashcan.
GNU General Public License v2.0
3.58k stars 179 forks source link

Get back '--' the cmd option ending indicator by reverting "Fix #264" #288

Closed laggardkernel closed 1 year ago

laggardkernel commented 1 year ago

Revert #270.

It's not a perfect fix, breaks the usage of -- to indicate the end of cmd options.

❯ command trash-put -- 1.txt
trash-put: cannot trash non existent '--'

Besides, seems nargs argparse.REMAINDER/... is deprecated cause it's not documented anymore.

Related

andreafrancia commented 1 year ago

Thank you.