Top "Arguments" questions

An argument is a value passed to a function, procedure, or command line program.

How do I use Head and Tail to print specific lines of a file

I want to say output lines 5 - 10 of a file, as arguments passed in. How could I use head and …

shell unix arguments tail unix-head
How to pass arguments to functions by the click of button in PyQt?

I want to pass the arguments to a function when I click the button. What should I add to this …

python function arguments pyqt4 argument-passing
Python: subprocess and running a bash script with multiple arguments

How do I go about running a bash script using the subprocess module, to which I must give several arguments? …

python bash arguments subprocess popen
How can I force ssh to accept a new host fingerprint from the command line?

I'm getting the standard WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone …

ssh arguments command-line-arguments sftp
format strings and named arguments in Python

Case 1: "{arg1} {arg2}".format(10, 20) It will give KeyError: 'arg1' because I didn't pass the named arguments. Case 2: "{arg1} {arg2}".…

python string arguments string-formatting
How can I read a function's signature including default argument values?

Given a function object, how can I get its signature? For example, for: def myMethod(firt, second, third='something'): pass …

python arguments inspect
Is there a difference between foo(void) and foo() in C++ or C?

Consider these two function definitions: void foo() { } void foo(void) { } Is there any difference between these two? If not, why …

c++ c arguments
multiple argument subs vba

Using VBA with Access 2010, I have a sub: Public Sub setInterest(account As String, dmonth As Integer) ...somecode... End Sub …

vba arguments call
What is the simplest way to remove a trailing slash from each parameter?

What is the simplest way to remove a trailing slash from each parameter in the '$@' array, so that …

bash shell arguments rsync stripslashes
Read from File, or STDIN

I've written a command line utility that uses getopt for parsing arguments given on the command line. I would also …

python file command-line arguments stdin