Ipconv::CLI
Constants
ALL_FORMATS = {"dotted", "hex", "hex_dotted", "integer", "binary", "octal", "expanded", "compressed", "mixed", "class", "special"}
HELP_TEXT = "Usage: ipconv [OPTIONS] <ADDRESS>\n ipconv range <CIDR> [OPTIONS]\n ipconv cidr <CIDR> [OPTIONS]\n\nOptions:\n -f, --format FORMAT Content format(s) to output (default: all)\n IPv4: dotted, hex, hex_dotted, integer, binary, octal\n IPv6: expanded, compressed, mixed\n Meta: class, special\n -o, --output FORMAT Output serialization format (default: plain)\n Values: plain, json, yaml, xml, csv\n --pretty Pretty-print output\n -h, --help Show this help message and exit\n -v, --version Show version and exit\n\nCommands:\n range <CIDR> Generate all IP addresses in a CIDR range\n cidr <CIDR> Show subnet information for a CIDR"
RANGE_HELP_TEXT = "Usage: ipconv range <CIDR> [OPTIONS]\n\nGenerate all IP addresses in a CIDR network range.\n\nArguments:\n CIDR CIDR notation (e.g., 192.168.1.0/24, 2001:db8::/32)\n\nOptions:\n -f, --format FORMAT Content format(s) to output (default: all)\n -o, --output FORMAT Output serialization format (default: plain)\n Values: plain, json, yaml, xml, csv\n --pretty Pretty-print output\n --limit N Maximum number of addresses to output\n --offset N Skip first N addresses in the range\n -h, --help Show this help message and exit"