diff --git a/CHANGELOG b/CHANGELOG index 0519591d..70348fc0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,6 @@ jc changelog -20230108 v1.22.5 +20230111 v1.22.5 - Add TOML file parser - Add INI with duplicate key support file parser - Add AIX support for the `arp` command parser diff --git a/docs/parsers/ini.md b/docs/parsers/ini.md index 52b65d73..527cd025 100644 --- a/docs/parsers/ini.md +++ b/docs/parsers/ini.md @@ -10,6 +10,8 @@ Parses standard INI files. - Delimiter can be `=` or `:`. Missing values are supported. - Comment prefix can be `#` or `;`. Comments must be on their own line. - If duplicate keys are found, only the last value will be used. +- If any section names have the same name as a top-level key, the top-level + key will be overwritten by the section data. > Note: Values starting and ending with double or single quotation marks > will have the marks removed. If you would like to keep the quotation diff --git a/docs/parsers/ini_dup.md b/docs/parsers/ini_dup.md index cd2503ab..e911969a 100644 --- a/docs/parsers/ini_dup.md +++ b/docs/parsers/ini_dup.md @@ -8,11 +8,12 @@ jc - JSON Convert INI with duplicate key file parser Parses standard INI files and preserves duplicate values. All values are contained in lists/arrays. -If multi-line values are used, each line will be a separate item in the -value list. Blank lines in multi-line values are not supported. - - Delimiter can be `=` or `:`. Missing values are supported. - Comment prefix can be `#` or `;`. Comments must be on their own line. +- If any section names have the same name as a top-level key, the top-level + key will be overwritten by the section data. +- If multi-line values are used, each line will be a separate item in the + value list. Blank lines in multi-line values are not supported. > Note: Values starting and ending with double or single quotation marks > will have the marks removed. If you would like to keep the quotation diff --git a/jc/parsers/ini.py b/jc/parsers/ini.py index 0990fec6..df49d410 100644 --- a/jc/parsers/ini.py +++ b/jc/parsers/ini.py @@ -5,6 +5,8 @@ Parses standard INI files. - Delimiter can be `=` or `:`. Missing values are supported. - Comment prefix can be `#` or `;`. Comments must be on their own line. - If duplicate keys are found, only the last value will be used. +- If any section names have the same name as a top-level key, the top-level + key will be overwritten by the section data. > Note: Values starting and ending with double or single quotation marks > will have the marks removed. If you would like to keep the quotation diff --git a/jc/parsers/ini_dup.py b/jc/parsers/ini_dup.py index c724a8ca..ae1661c0 100644 --- a/jc/parsers/ini_dup.py +++ b/jc/parsers/ini_dup.py @@ -3,11 +3,12 @@ Parses standard INI files and preserves duplicate values. All values are contained in lists/arrays. -If multi-line values are used, each line will be a separate item in the -value list. Blank lines in multi-line values are not supported. - - Delimiter can be `=` or `:`. Missing values are supported. - Comment prefix can be `#` or `;`. Comments must be on their own line. +- If any section names have the same name as a top-level key, the top-level + key will be overwritten by the section data. +- If multi-line values are used, each line will be a separate item in the + value list. Blank lines in multi-line values are not supported. > Note: Values starting and ending with double or single quotation marks > will have the marks removed. If you would like to keep the quotation diff --git a/man/jc.1 b/man/jc.1 index a10433ae..2011a01f 100644 --- a/man/jc.1 +++ b/man/jc.1 @@ -1,4 +1,4 @@ -.TH jc 1 2023-01-10 1.22.5 "JSON Convert" +.TH jc 1 2023-01-11 1.22.5 "JSON Convert" .SH NAME \fBjc\fP \- JSON Convert JSONifies the output of many CLI tools, file-types, and strings .SH SYNOPSIS