Skip to content

Conversation

@castingflame
Copy link

Add two new command-line options for labeling ping targets:

-l, --label: Per-host labels

  • Each -l flag applies to the following host argument
  • Adds label with 2 spaces before host display
  • Example: gping -l "Cloudflare" 1.1.1.1 -l "Google" 8.8.8.8

-L, --global-labels: Global label mode with aligned columns

  • Arguments alternate: "label" host "label" host...
  • Use "" for hosts without labels
  • Labels truncated to 10 characters max
  • All hosts align vertically in same column
  • Example: gping -L "Cloudflare" 1.1.1.1 "Google" 8.8.8.8 "" 9.9.9.9

This helps identify hosts at a glance when monitoring multiple targets, especially useful for home lab and network monitoring scenarios where IP addresses alone aren't descriptive enough.

Add two new command-line options for labeling ping targets:

-l, --label: Per-host labels
  - Each -l flag applies to the following host argument
  - Adds label with 2 spaces before host display
  - Example: gping -l "Cloudflare" 1.1.1.1 -l "Google" 8.8.8.8

-L, --global-labels: Global label mode with aligned columns
  - Arguments alternate: "label" host "label" host...
  - Use "" for hosts without labels
  - Labels truncated to 10 characters max
  - All hosts align vertically in same column
  - Example: gping -L "Cloudflare" 1.1.1.1 "Google" 8.8.8.8 "" 9.9.9.9

This helps identify hosts at a glance when monitoring multiple
targets, especially useful for home lab and network monitoring
scenarios where IP addresses alone aren't descriptive enough.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant