psychedelys / mysql-cacti-templates

Automatically exported from code.google.com/p/mysql-cacti-templates
GNU General Public License v2.0
0 stars 0 forks source link

Use getopt instead of parsing the input manually #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I can see that you are manually parsing command-line arguments, thus making
them less flexible. You could use PHP's getopt() to do the job for you.

Original issue reported on code.google.com by slawekp on 14 May 2009 at 10:30

GoogleCodeExporter commented 8 years ago
Right.  getopt() is very limited and system-dependent, and I hacked something
together as I went.  It's ugly, like all the other PHP ugly option-parsing code 
I've
seen.

I would be open to a better way, but it needs to be platform and version 
agnostic,
and it needs to only do limited things -- no need for a big effort.

Original comment by baron.schwartz on 14 May 2009 at 3:11

GoogleCodeExporter commented 8 years ago
Removing unused labels.

Original comment by baron.schwartz on 16 Apr 2010 at 2:14