I want to produce a script that utilizes command-line arguments. So far I have this:
Obviously if the user were to double-click the executable, it will exit since it wasn't called from the CLI w/ the appropriate arguments.
At this point however, I want to establish this synatx:
Basically I'm trying to get and values following -h (for host), -m (for method), and then the -t (for threads).
I assume I would have to determine their index, right? I'm having trouble getting the values and setting them in global variables. If anyone could help me I would greatly appreciate it <3
Code
Dim clArgs() As String = Environment.GetCommandLineArgs()
If clArgs.Count <= 1 Then
Environment.Exit(0).
End IfAt this point however, I want to establish this synatx:
Code
my_program.exe -h http://www.example.com -m GET -r -t 50I assume I would have to determine their index, right? I'm having trouble getting the values and setting them in global variables. If anyone could help me I would greatly appreciate it <3

