Antoine Beaupré <[email protected]> writes: > On 2013-08-17 18:16:59, Micah Anderson wrote: >> You can pass the full fingerprint, including spaces, to monkeysign for >> the key to be signed. However, if you try to do this for -u, then it >> gets rather confused and only takes the first 4 characters and then >> assumes the remainder is a key that should be signed (an invalid key >> that it will fail to find). > > This is a limitation of the "optparse" library - the number of arguments > to an option is hardcoded, I believe. Logically, the commandline parser > needs to know how many arguments after `-u` it needs to "eat" and pass > to that option, and since we want to accept single uids, it seems to me > we can't accept space-separated fingerprints there. > > I know it's inconsistent, but it's a limitation with the commandline > parser built into python. The new "argparse" library supports variable > length arguments, but that requires porting:
Thanks for the explanation! > > http://docs.python.org/2/library/argparse.html#nargs > > So for now, use a single userid or (non-space-separated) fingerprint. > > (Or is monkeysign -u choking on (non-space-separated) fingerprints?) Nope, it is just choking on the space-separated ones. micah -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

