Skip to content

Commit 28ba22f

Browse files
committed
Update README.md
1 parent 53e9090 commit 28ba22f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ lng = loc.get_decimal("longitude")
243243
- **I/O methods**
244244

245245
- [`from_base64`](#from_base64)
246+
- [`from_cli`](#from_cli)
246247
- [`from_csv`](#from_csv)
247248
- [`from_ini`](#from_ini)
248249
- [`from_json`](#from_json)
@@ -531,6 +532,16 @@ In all `to_*` methods, if `filepath="..."` kwarg is specified, the output will b
531532
d = benedict.from_base64(s, subformat="json", encoding="utf-8", **kwargs)
532533
```
533534

535+
#### `from_cli`
536+
537+
```python
538+
# Load and decode data from a string of CLI arguments.
539+
# ArgumentParser specific options can be passed using kwargs:
540+
# https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser
541+
# Return a new dict instance. A ValueError is raised in case of failure.
542+
d = benedict.from_cli(s, **kwargs)
543+
```
544+
534545
#### `from_csv`
535546

536547
```python

0 commit comments

Comments
 (0)