ranger-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ranger-users] [andreafrancia/trash-cli] Problem deleting files begi


From: flyingrhino
Subject: Re: [Ranger-users] [andreafrancia/trash-cli] Problem deleting files beginning with minus (#137)
Date: Mon, 11 Feb 2019 11:55:09 +1300

On Sat, 09 Feb 2019 18:16:58 -0800
Peter Marheine <address@hidden> wrote:

> Putting `--` before the positional arguments should do the trick, eg
> 
> ```
> trash-put -- -01.mp3
> ```
> 
> This pattern usually indicates all following options are positional 
> arguments, and that appears to be the case with `optparse` as used here (not 
> documented, but in a quick experiment it works with Python 3.6- I assume it 
> will for 2.7 as well).
> 


Thank you very much, this did indeed resolve my problem. It was there all along 
in 'trash --help' , but not in trash manpage where I looked.
I closed the ticket on github too.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]