Skip to content

Commit e3713c3

Browse files
new: hyperlinks for help URLs (#554)
## 📝 Description **What does this PR do and why is this change necessary?** Creates a clickable (if supported) hyperlink for `--help` output. ## ✔️ How to Test **What are the steps to reproduce the issue or verify the changes?** Run a help command and click the link or observe its style change. ```bash make install lin linodes ls --help ```
1 parent 90edae0 commit e3713c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linodecli/arg_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def action_help(cli, command, action):
355355
print()
356356
print(op.summary)
357357
if op.docs_url:
358-
print(f"API Documentation: {op.docs_url}")
358+
rprint(f"API Documentation: [link={op.docs_url}]{op.docs_url}[/link]")
359359
print()
360360
if op.method == "get" and op.action == "list":
361361
filterable_attrs = [

0 commit comments

Comments
 (0)