But would not be better to make interface similar to interface of standard Linux command uuidgen? In any case it should support the -h or --help options.
@ephenix would you still like to work on this as I see you've closed your PR? If not, I'd like to work on this; I'll wait a couple of days to give you a chance to respond if you'd still like to continue.
@ephenix would you still like to work on this as I see you've closed your PR? If not, I'd like to work on this; I'll wait a couple of days to give you a chance to respond if you'd still like to continue.
I lost track of this -- feel free to take my pull request and do anything necessary to get it merged. IIRC the changes I made were working.
Thank you for your contribution @achhina. But I have few nitpicks:
Most CLI tools on Unix and Linux use minus followed by a single letter as short options, and double minus followed by a sequence of letters as long option. An alternative style used in minority of commands (e.g. find and java) use single minus for long options. But your proposition mixes the styles: there are short options like -u, long options like --name, and also long option with a single minus -ns. argparse of course supports both styles, but I was surprised that it supports a mix, and I am not sure that it will not be broken in future (-ns can be interpreted as two separate options -n and -s).
Standard Linux utility uuidgen has similar interface, but conflicting short options. -n is a short alias of --namespace, and -N is a short alias of --name. As you see option -n has different semantic.
uuidgen accepts namespace argument in form: @dns @url @oid @x500. In your proposition it should be in form: NAMESPACE_DNS NAMESPACE_URL NAMESPACE_OID NAMESPACE_X500. And it is not documented.
I propose to rename -n to -N and -ns to -n, and accept simpler compatible namespace syntax.
Activity
ephenix commented on Jun 16, 2021
Suggested functionality:
serhiy-storchaka commented on Jun 16, 2021
I think it would be a useful feature.
But would not be better to make interface similar to interface of standard Linux command uuidgen? In any case it should support the -h or --help options.
achhina commented on Nov 7, 2022
@ephenix would you still like to work on this as I see you've closed your PR? If not, I'd like to work on this; I'll wait a couple of days to give you a chance to respond if you'd still like to continue.
ephenix commented on Nov 10, 2022
I lost track of this -- feel free to take my pull request and do anything necessary to get it merged. IIRC the changes I made were working.
pythonGH-88597: Added command line interface to UUID module.
pythonGH-88597: Added command line interface to UUID module.
pythonGH-88597: Added command line interface to UUID module.
pythonGH-88597: Added command line interface to UUID module.
pythonGH-88597: Added command line interface to UUID module.
pythonGH-88597: Added command line interface to UUID module.
pythonGH-88597: Added command line interface to UUID module.
pythonGH-88597: Added command line interface to UUID module.
5 remaining items
GH-88597: Added command line interface to UUID module. (#99463)
gpshead commented on Jan 22, 2023
thanks for the contribution.
serhiy-storchaka commented on Jan 22, 2023
Thank you for your contribution @achhina. But I have few nitpicks:
I propose to rename -n to -N and -ns to -n, and accept simpler compatible namespace syntax.
achhina commented on Jan 22, 2023
@serhiy-storchaka that makes sense, I can create a follow-up patch in regards to the proposed changes if everyone agrees - cc @gpshead.
gpshead commented on Jan 22, 2023
Good thinking Serhiy, those changes makes sense to me.
gpshead commented on Jan 22, 2023
Just @ me on the PR when you've created one @achhina.
pythonGH-88597: Rename uuid cli args and parameters to be in line wit…
GH-88597: Rename uuid's new CLI args to be in line with uuidgen. (#10…
gpshead commented on Jan 25, 2023
thanks for the contribution!
pythonGH-88597: Rename uuid's new CLI args to be in line with uuidgen. (
pythonGH-88597: Rename uuid's new CLI args to be in line with uuidgen. (