"Fossies" - the Fresh Open Source Software archive 
Member "p7zip_9.20.1/DOCS/MANUAL/switches/output_dir.htm" of archive p7zip_9.20.1_src_all.tar.gz:
Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links.
Alternatively you can here view or download the uninterpreted source code.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
-o (set Output directory) switch
Specifies a destination directory where files are to be extracted.
This switch can be used only with extraction commands.
Syntax
-o{dir_path}
- {dir_path}
- This is the destination directory path. It's not required to end with a backslash.
If you specify * in {dir_path}, 7-Zip substitutes that * character to archive name.
Example
7z x archive.zip -oc:\Doc
extracts all files from the archive.zip archive
to the c:\Doc directory.
7z x *.zip -o*
extracts all *.zip archives to subfolders
with names of these archives.
Commands that can be used with this switch
e (Extract),
x (Extract with full paths)