I want to write a simple python program that will take a file as an argument and an integer.
I would want it to look like this:
simple.py myJ.json 5
After that I want to have access to myJ.json
and 5
arguments within my code.
Basically something that would allow me to store them as variables that I can refer to for the rest of the execution of my code within simple.py
.
my_json = command.arg[1] #something like that
integer = commmand.arg[2]
integer = integer + 1
: doing things with them afterwards.
:
: