pg_restore importing single table to a file

I have a backup in directory format taken with pg_dump.

When I try to export single table from this dump with the command:

pg_restore -Fd mydirectory -t sometable > table.sql  

I get the error :

pg_restore: error: one of -d/--dbname and -f/--file must be specified. 

When I read the document if no -d parameter passed pg_restore should print the output to stdout.

What I am missing?