I have a program that does two separate things. But I want to the program to only run one specific part based on what I enter in the command like in the format
program -a
program -s
where the a or s would be programmed to tell it to do something specific.
For example, if my program was something like:
# program -a entered
z = x + y
# program -s entered
z = x - y
Now I could easily do this with an if statement after running the program, but is it possible to directly skip to a statement like I said from the command prompt?