Hi guys,
I just wanna have flexible parameter for my script and I couldn't find out how to put validation on it.
The script has one or more parameter, but the sequence could be changed
example :
./script.ksh -U user (accepted)
./script.ksh -U user -P password (accepted)
./script.ksh -P password -U user (accepted)
Anyone got any idea ?
Thx heaps guys
I just wanna have flexible parameter for my script and I couldn't find out how to put validation on it.
The script has one or more parameter, but the sequence could be changed
example :
./script.ksh -U user (accepted)
./script.ksh -U user -P password (accepted)
./script.ksh -P password -U user (accepted)
Anyone got any idea ?
Thx heaps guys