Parse command-line arguments: Difference between revisions
Content added Content deleted
(added Autohotkey) |
(PARI and GP) |
||
Line 196: | Line 196: | ||
-> {math, -v, -n, -z, -w, 1, 192.168.1.2, 1-1000} |
-> {math, -v, -n, -z, -w, 1, 192.168.1.2, 1-1000} |
||
</lang> |
</lang> |
||
=={{header|PARI/GP}}== |
|||
GP exists in a REPL and so it doesn't make sense to parse command-line arguments. But PARI can parse them just like [[#C|C]]: |
|||
<lang c>#include <pari/pari.h> |
|||
#include <stdio.h> |
|||
int main(int argc, char **argv){ |
|||
if(strcmp(argv[1],"-n")) |
|||
pari_printf("8 + 1 = %Ps\n", addii(int2u(3), gen_1)); |
|||
return 0; |
|||
}</lang> |
|||
=={{header|Perl}}== |
=={{header|Perl}}== |
||