ipv6calc BUG: --printuppercase doesn't work.
ipv6calc BUG: --printuppercase doesn't work. It is documented to work in version 0.45 and 0.50, but it does not work. --uppercase (the old option?), however, does. Proof: $ ipv6calc --version ipv6calc: version 0.50 $ ipv6calc -q 'Itq!EN%BS(OvEV3?2kP!' --out ipv6addr --printfulluncompressed --printuppercase ipv6calc: unrecognized option `--printuppercase' 3ffe:81d0:ffff:0000:0000:0000:0000:0003 $ ipv6calc -q 'Itq!EN%BS(OvEV3?2kP!' --out ipv6addr --printfulluncompressed --uppercase 3FFE:81D0:FFFF:0000:0000:0000:0000:0003 $ ipv6calc --out ipv6addr --examples ipv6calc: version 0.50 Print a given IPv6 address depending on format options: Uncompressed, e.g. 3ffe:ffff:100:f101::1 -> 3ffe:ffff:100:f101:0:0:0:1 3ffe:ffff:100:f101::1/64 -> 3ffe:ffff:100:f101:0:0:0:1/64 Full uncompressed, e.g. 3ffe:ffff:100:f101::1 -> 3ffe:ffff:0100:f101:0000:0000:0000:0001 Compressed, e.g. 3ffe:ffff:0100:f101:0000:0000:0000:0001 -> 3ffe:ffff:100:f101::1 Available format options: --printlowercase: Print output in lower case --printuppercase: Print output in upper case <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< --printprefix: Print only prefix --printsuffix: Print only suffix --maskprefix: Mask prefix bits (suffix set to 0) --masksuffix: Mask suffix bits (prefix set to 0) --printstart <num>: Printing starts at bit <num> --printend <num>: Printing ends at bit <num> --printcompressed: Print in compressed format --printuncompressed: Print in uncompressed format --printfulluncompressed: Print in full uncompressed format $ $ ipv6calc --version ipv6calc: version 0.45 $ ipv6calc -q 'Itq!EN%BS(OvEV3?2kP!' --out ipv6addr --printfulluncompressed --printuppercase ipv6calc: unrecognized option `--printuppercase' 3ffe:81d0:ffff:0000:0000:0000:0000:0003 $ ipv6calc -q 'Itq!EN%BS(OvEV3?2kP!' --out ipv6addr --printfulluncompressed --uppercase 3FFE:81D0:FFFF:0000:0000:0000:0000:0003 $ pv6calc --out ipv6addr --examples ipv6calc: version 0.45 Print a given IPv6 address depending on format options: Uncompressed, e.g. 3ffe:ffff:100:f101::1 -> 3ffe:ffff:100:f101:0:0:0:1 3ffe:ffff:100:f101::1/64 -> 3ffe:ffff:100:f101:0:0:0:1/64 Full uncompressed, e.g. 3ffe:ffff:100:f101::1 -> 3ffe:ffff:0100:f101:0000:0000:0000:0001 Compressed, e.g. 3ffe:ffff:0100:f101:0000:0000:0000:0001 -> 3ffe:ffff:100:f101::1 Available format options: --printlowercase: Print output in lower case --printuppercase: Print output in upper case --printprefix: Print only prefix --printsuffix: Print only suffix --maskprefix: Mask prefix bits (suffix set to 0) --masksuffix: Mask suffix bits (prefix set to 0) --printstart <num>: Printing starts at bit <num> --printend <num>: Printing ends at bit <num> --printcompressed: Print in compressed format --printuncompressed: Print in uncompressed format --printfulluncompressed: Print in full uncompressed format $ I also have a feature request: shorter options. Each option could be given a short one letter abbreviation, such as -i for --in, -o for --out, -6 for --ipv6addr, -U for --printuppercase, -u for --printuncompressed, and -f for --printfulluncompressed, so the above command would become ipv6calc -qo6fU 'Itq!EN%BS(OvEV3?2kP!'. ( -qo6fUi8 would be -q --out ipv6addr --fulluncompressed --printuppercase --in base85, and likewise -qi8o6fU would be -q --in base85 --out ipv6addr --printfulluncompressd --printuppercase.) I think ipv6calc is a perfect example case study in what's wrong with long options. They are insane. Sincerely, Brad Allen <ULMO@SONIC.NET>
Sorry for late reply, posting was on-hold in spam trap. qm wrote:
ipv6calc BUG: --printuppercase doesn't work. It is documented to work in version 0.45 and 0.50, but it does not work. --uppercase (the old option?), however, does. Proof:
I will dig into this issue soon.
I also have a feature request: shorter options. Each option could be given a short one letter abbreviation, such as -i for --in, -o for --out, -6 for --ipv6addr, -U for --printuppercase, -u for --printuncompressed, and -f for --printfulluncompressed, so the above command would become ipv6calc -qo6fU 'Itq!EN%BS(OvEV3?2kP!'. ( -qo6fUi8 would be -q --out ipv6addr --fulluncompressed --printuppercase --in base85, and likewise -qi8o6fU would be -q --in base85 --out ipv6addr --printfulluncompressd --printuppercase.)
I will try to do this, have first create an overview, what is already used...
I think ipv6calc is a perfect example case study in what's wrong with long options. They are insane.
Ohoh...it was caused by grow of features. Peter
Hi again, qm wrote:
ipv6calc BUG: --printuppercase doesn't work. It is documented to work in version 0.45 and 0.50, but it does not work. --uppercase (the old option?), however, does. Proof:
Fixed, online help was wrong, only --{upper|lower}case is supported.
I also have a feature request: shorter options. Each option could be given a short one letter abbreviation, such as -i for --in, -o for --out, -6 for --ipv6addr, -U for --printuppercase, -u for --printuncompressed, and -f for --printfulluncompressed, so the above command would become ipv6calc -qo6fU 'Itq!EN%BS(OvEV3?2kP!'. ( -qo6fUi8 would be -q --out ipv6addr --fulluncompressed --printuppercase --in base85, and likewise -qi8o6fU would be -q --in base85 --out ipv6addr --printfulluncompressd --printuppercase.)
Some are now implemented: --in|-I --out|-O --action|-A --printcompressed|-C --printuncompressed|-U --printfulluncompressed|-F "-i" was already used for "showinfo" BTW: what do you mean with: -6 for --ipv6addr "--ipv6addr" is currently not supported at all. Do you mean to implement a shortcut for "-I ipv6addr"? Note because of autodetection on input it's normally not necessary to specify "-I <format>" at all. Would you please test latest version from CVS? Thank you very much! Hope this helps, Peter
participants (2)
-
Peter Bieringer
-
qm