Best I can tell there is no way to specify that a short option should have an argument. I've tried the following:
This errors:
opts = getopt.create([
["d=ARG"]
}).parseSystem();
This is what I gather from the documentation:
opts = getopt.create([
["d", "="]
}).parseSystem();
This is literally copying the documentation:
opts = getopt.create([
["S", "="]
}).parseSystem();
With each of these it lets me pass in -d (or -S in the last one), but any attempts to specify -d=bla or -d bla get ignored and querying opts["d"] is undefined.
Best I can tell there is no way to specify that a short option should have an argument. I've tried the following:
This errors:
This is what I gather from the documentation:
This is literally copying the documentation:
With each of these it lets me pass in
-d(or-Sin the last one), but any attempts to specify-d=blaor-d blaget ignored and queryingopts["d"]is undefined.