Skip to content

Commit 75b5068

Browse files
committed
feat: outline 대신 overview로 이름 변경
1 parent 2420ee4 commit 75b5068

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/httpc/_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _extract_next_data_cli() -> None:
148148
parser.add_argument("--include-prefixed", "-p", action="store_true")
149149
parser.add_argument("--include", "-i", action="append", type=str, default=[], help="Include only specific prefixes.")
150150
parser.add_argument("--exclude", "-x", action="append", type=str, default=[], help="Exclude specific prefixes.")
151-
parser.add_argument("--outline", nargs="?", type=int, default=_NOTSET, help="Show a outline for the data.")
151+
parser.add_argument("--overview", nargs="?", type=int, default=_NOTSET, help="Show data overview.")
152152
parser.add_argument("--no-rich-data", "-n", action="store_true", help="Do not use rich for data output.")
153153
args = parser.parse_args()
154154
# return print(args)
@@ -174,10 +174,10 @@ def _extract_next_data_cli() -> None:
174174
console.print(item.value)
175175
return
176176

177-
if args.outline is not _NOTSET:
177+
if args.overview is not _NOTSET:
178178
from rich.table import Table
179179

180-
table = Table(title="Next Data Outline")
180+
table = Table(title="Next Data Overview")
181181
table.add_column("[blue]Hexdigit", style="cyan", no_wrap=True, justify="right")
182182
if args.include_prefixed:
183183
table.add_column("[blue]Prefix", style="magenta", no_wrap=True)
@@ -192,7 +192,7 @@ def _extract_next_data_cli() -> None:
192192
if not args.include_prefixed and item.prefix:
193193
continue
194194
data_raw = json.dumps(item.value, ensure_ascii=False)
195-
truncated_limit = args.outline or 80
195+
truncated_limit = args.overview or 80
196196
truncated = data_raw[:truncated_limit]
197197
if len(data_raw) < truncated_limit:
198198
truncated = truncated + " " + "." * (truncated_limit - len(truncated))

0 commit comments

Comments
 (0)