Features and Improvements
- Rewrote
PostDataActionin CLI to accept both JSON strings andkey:valueformat.
Previously only JSON was accepted; nowkey:valuepairs are also supported. - Added "can be specified multiple times" hints to repeatable CLI flags.
- Standardized CLI help text capitalization across all subcommands.
Bugfixes
- Fixed CLI argument parsing bug where
nargs="+"on options like--header,
--metadata, and--formatwould greedily consume subsequent positional
arguments (e.g. the identifier). Changed tonargs=1with repeated flags. - Fixed mutable
default={}bug in custom argparse actions (PostDataAction,
QueryStringAction,MetadataAction,FlattenListAction) that caused state
leakage when parsers were reused across multiple invocations. - Fixed
RecursionErrorcaused bysocket.connectbeing monkey-patched on every
ArchiveSessioninstantiation. Each new session would wrap the already-patched
function, causing infinite mutual recursion after ~980 sessions. The patch is now
applied once at module import time
(#746 <https://github.com/jjjake/internetarchive/issues/746>_).