command-line-argument tag

6 questions


1 answers
131 views
0
Where can I see the command line input to Python?

Hello.I'm making a shell by myself, but I don't know how to get a command line factor.In C, I got argc and argv from the mainWhat should I do with Python?I'm temporarily receiving raw_input() right no...


1 answers
87 views
0
How to run a class of jar files

There is a jar file called myJar.jar in myfolder. I want to call myClass in this jar file, so can I know which command to enter?I did java-cp myJar.jar.myClass, but I can't.


1 answers
142 views
0
How do I get input to command line as ruby?

How do I get input to command line as ruby?> cat input.txt | myprog.rb> myprog.rb < input.txt> myprog.rb arg1 arg2 arg3 ...I'm going to get stdin like this, but I'd like to know other ways...


1 answers
138 views
0
Commands similar to lsblk on Linux in a Windows environment

Hello.The Linux terminal has a command called lsblk.If you run the command, you will get the following results:NAME MAJ:MINRM SIZE RO TYPE MOUNTPOINTsda 8:0 0 64G 0 disk ├─sda1 8:1 0 63G 0 part /├─sda...


1 answers
168 views
0
What is the parameter "String args[]" in the main function in Java?

When defining the main functionpublic void main(String[] args)You do it like this. HereWhat is String [args] and what is this for?


1 answers
151 views
0
What does (int argc, char *argv[]) do?

I usuallyint main()We share a roomIf you're working on C++ IDE,Make the main function int main(int argc, char *argv[]) automatically.The factor is when you call a function, but the main function is ex...


© 2024 OneMinuteCode. All rights reserved.