Re: MixedCase or dashed-case for long options in Solr CLI?

2024-03-17 Thread Eric Pugh
Thanks for chiming in. Yes, this would be 10 only change. Have you been able to try out the Windows scripts? > On Mar 17, 2024, at 3:05 PM, Shawn Heisey wrote: > > On 3/17/2024 13:01, Shawn Heisey wrote: >> I like there to be a single character option and a kebab-case option. So -z >>

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-03-17 Thread Shawn Heisey
On 3/17/2024 13:01, Shawn Heisey wrote: I like there to be a single character option and a kebab-case option. So -z and --zk-host.  Long options like find uses, such as -name, can be OK, but if you're going for standardization, I would just stick with the first two. In cases where there might

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-03-17 Thread Shawn Heisey
On 2/24/2024 09:34, Eric Pugh wrote: I wanted to get the communities input on formatting of long options for the Solr CLI. I noticed on https://commons.apache.org/proper/commons-cli/ that their examples all are —dashed-case. However, we have —solrUrl or —zkHost as our pattern. Though in wo

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-03-04 Thread Eric Pugh
-z and --zk-host works for me. > On Mar 4, 2024, at 9:15 AM, Arrieta, Alejandro > wrote: > > I prefer > > —zk-host > > Kind Regards, > Alejandro Arrieta > > On Mon, Mar 4, 2024 at 8:45 AM Eric Pugh > > wrote: > >> “zkHost” —> “—zk-host” or “—zkhost”

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-03-04 Thread Arrieta, Alejandro
I prefer —zk-host Kind Regards, Alejandro Arrieta On Mon, Mar 4, 2024 at 8:45 AM Eric Pugh wrote: > “zkHost” —> “—zk-host” or “—zkhost” ? > > > > On Mar 4, 2024, at 6:34 AM, Eric Pugh > wrote: > > > > Kebab! I love it. > > > > > >> On Mar 3, 2024, at 1:14 PM, Arrieta, Alejandro < > aarri...@

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-03-04 Thread Eric Pugh
“zkHost” —> “—zk-host” or “—zkhost” ? > On Mar 4, 2024, at 6:34 AM, Eric Pugh wrote: > > Kebab! I love it. > > >> On Mar 3, 2024, at 1:14 PM, Arrieta, Alejandro >> wrote: >> >> Hello, >> >> dashed-case is called kebab case almost everywhere. One example: >> https://www.theserverside.com/

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-03-04 Thread Eric Pugh
Kebab! I love it. > On Mar 3, 2024, at 1:14 PM, Arrieta, Alejandro > wrote: > > Hello, > > dashed-case is called kebab case almost everywhere. One example: > https://www.theserverside.com/definition/Kebab-case > I was looking at the meaning of dashed-case, and it always pointed to > kebab-ca

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-03-03 Thread Arrieta, Alejandro
Hello, dashed-case is called kebab case almost everywhere. One example: https://www.theserverside.com/definition/Kebab-case I was looking at the meaning of dashed-case, and it always pointed to kebab-case. Having kebab, Kamel, and other cases helps troubleshoot over a conference to see command e

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-03-03 Thread Eric Pugh
Thanks all for weighing in. So I’m going to go for —dashed-case for long options. So expect some —solr-url and —zk-host parameters coming! > On Feb 26, 2024, at 10:28 AM, Walter Underwood wrote: > > Long options are dashed-case, following the GNU convention. POSIX only > specifies single

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-02-26 Thread Walter Underwood
Long options are dashed-case, following the GNU convention. POSIX only specifies single character options. The “—“ prefix for long options is a GNU invention, as far as I know. Older Unix commands with long option names, e.g. find, only use a single dash. https://www.gnu.org/software/libc/manua

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-02-26 Thread Eric Pugh
I hear a vote for dashed-case, how about some more votes? —solr-update-url versus —solrUpdateUrl ? > On Feb 26, 2024, at 7:29 AM, Jason Gerlowski wrote: > > My guess is that "dashed-case" is slightly more common -- at least, > that's my sense from haphazardly checking a few tools I use ofte

Re: MixedCase or dashed-case for long options in Solr CLI?

2024-02-26 Thread Jason Gerlowski
My guess is that "dashed-case" is slightly more common -- at least, that's my sense from haphazardly checking a few tools I use often ("curl", "kubectl", "git", "docker"). But I don't have an opinion as long as we're internally consistent about using one convention or the other. Best, Jason On