- Git repo on Codeberg: https://codeberg.org/anhsirk0/exqt
- Mirrors:
- GitHub: https://github.com/anhsirk0/exqt
- Mirrors:
Its just a perl script download it make it executable and put somewhere in your $PATH
curl https://codeberg.org/anhsirk0/exqt/raw/branch/main/exqt.pl --output exqt
chmod +x exqt
cp exqt ~/.local/bin/
exqt <FILE> <ARGS>
test.c
#include <stdio.h>
int main(int argc, char **argv) {
printf("Number of args: %d\n", argc);
for (int i = 0; i < argc; i++) {
printf("arg %d: %s\n", i, argv[i]);
}
return 0;
}
running it with exqt
$ exqt test.c arg1 arg2 arg3
Number of args: 4
arg 0: ./exqt_test.out
arg 1: arg1
arg 2: arg2
arg 3: arg3
Python Example test.py
import sys
print(sys.argv)
$ exqt test.py arg1 arg2 arg3
['test.py', 'arg1', 'arg2', 'arg3']