uskudnik / amazon-glacier-cmd-interface

Command line interface for Amazon Glacier
MIT License
375 stars 103 forks source link

rmarchive with archive identifiers beginning with a dash results in the error 'too few arguments' #144

Closed kill-9-me closed 10 years ago

kill-9-me commented 10 years ago

It is possible for an archive identifier to begin with a - (dash). Archive identifiers that start with a - are being parsed as a command line option. This is using the latest version from github.

command

glacier-cmd --aws-access-key [REDACTED] --aws-secret-key [REDACTED] --region us-east-1 rmarchive [REDACTED] '-eHRfY5B6o[REDACTED]'

result

usage: glacier-cmd rmarchive [-h] vault archive
glacier-cmd rmarchive: error: too few arguments