-1

I have a python program which take a dozen input parameters, so normally I invoke it with python my_script.py --inputA a --inputB b --inputC c --inputD d --inputE e --inputF f --inputG g --inputH h --inputI i --inputJ j --inputK k

This is a long line, and it is not easy to read

I tried add \ charactor after --inputA a in command line, but after return the return key, it will run, not wait for me to input another input parameter

4
  • 2
    Doesn't have anything do with python. What shell are you using? Commented May 30, 2019 at 6:49
  • what you can do in this case , as a parameter take a file, inside the file keep all this pair and parse the file and get the data Commented May 30, 2019 at 6:49
  • @rdas windows powershell Commented May 30, 2019 at 7:01
  • You need to use the "`" (backtick) character for line-continuation: stackoverflow.com/questions/3235850/… Commented May 30, 2019 at 7:08

1 Answer 1

-3

you can use input parameter command

param = input("Please input parameter \n")

here example :

http://en.verejava.com/?id=2022295574921

Sign up to request clarification or add additional context in comments.

1 Comment

While this is valid code for when the script is taking input, it does not match the question, which is regarding flags passed in the execution command itself.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.