Hokkaydo / EPLBot

EPLBot sources repository
https://discord.gg/9wKTDtPbvm
GNU General Public License v3.0
7 stars 6 forks source link

Command line arguments for the "compile" command #91

Closed eplbot[bot] closed 2 months ago

eplbot[bot] commented 2 months ago

An parameter could be added to the command to give arguments to the program

emecdelam commented 2 months ago

I'm not sure of the utility of passing arguments to a code, since you can just define the argument that you want to pass in the code

int main(int argc, char* argv[])
{
    return argc //argc = 1;
}

can be switched to

int main()
{
    int argc = 1;
    return argc //argc = 1;
}

so this feature wont be fixed, also it complicates thing alot just to know what datatype would be passed as argument