arguments Questions
3
Solved
After "upgrading" to Mavericks and Xcode 5, I have a variety of minor problems to deal with to make Xcode compile some of my older projects.
It appears that Xcode is passing a new argument to the ...
Izzard asked 4/2, 2014 at 2:43
4
Another user asked the same question, but I could not understand the solution. I also don't understand why the Android Developer page doesn't show a path according to this new version.
buildscript ...
Pennyworth asked 9/5, 2022 at 14:55
8
As a simple example, take a class Ellipse that can return its properties such as area A, circumference C, major/minor axis a/b, eccentricity eetc. In order to get that, one obviously has to provide...
Washwoman asked 19/2, 2015 at 11:7
2
Solved
I am looking to do something similar to what was asked here Getting list of parameter names inside python function, but using partial functions. ie. I need to get the possible arguments for a parti...
Rompish asked 23/5, 2011 at 13:20
15
Solved
I'd like to be able to declare an array as a function argument in C++, as shown in the example code below (which doesn't compile). Is there any way to do this (other than declaring the array separa...
7
Solved
How do I go about running a bash script using the subprocess module, to which I must give several arguments?
This is what I'm currently using:
subprocess.Popen(['/my/file/path/programname.sh', 'a...
Poulson asked 21/6, 2013 at 19:23
2
Solved
How to specify multiple optional arguments in a function without respecting the order they are given
The below example the optional arguments must be given in order; hence ShowHeaders Must Precede ValueAdd and so on. If I want to specify ValueAdd, I*must* specify ShowHeaders:
Function Example(Val...
Roundhead asked 26/8, 2013 at 22:36
11
Solved
Can I change effective process name of a Python script? I want to show a different name instead of the real name of the process when I get the system process list. In C I can set
strcpy(argv[0],&qu...
6
Solved
I have been trying to create a decorator that can be used with both functions and methods in python. This on it's own is not that hard, but when creating a decorator that takes arguments, it seems ...
44
Solved
Say, I have a script that gets called with this line:
./myscript -vfd ./foo/bar/someFile -o /fizz/someOtherFile
or this one:
./myscript -v -f -d -o /fizz/someOtherFile ./foo/bar/someFile
What's ...
Postoperative asked 10/10, 2008 at 16:57
2
I'm currently starting up the server with the following Uvicorn command:
main:app --host 0.0.0.0 --port 8003 --access-log
And I would like to add an extra argument --foo such that it works as argp...
Brena asked 29/11, 2022 at 17:1
14
Solved
Is there a way in C to parse a piece of text and obtain values for argv and argc, as if the text had been passed to an application on the command line?
This doesn't have to work on Windows, just ...
10
Solved
What is the simplest way to remove a trailing slash from each parameter in the '$@' array, so that rsync copies the directories by name?
rsync -a --exclude='*~' "$@" "$dir"
The title has been ...
Fewness asked 26/1, 2012 at 13:24
10
Solved
I have a Java application that runs with a custom gradle task and the application requires some arguments upon being invoked. These are:
programName ( string | -f filename | -d key | -h)
Options:
...
7
Solved
According to the documentation, it's possible to define multiple args for the flag --build-arg, but I can't find out how. I tried the following:
docker build -t essearch/ess-elasticsearch:1.7.6 --...
4
Suppose we have an R function whose arguments must be selected out of a finite set of elements. Like qplot(..., geom=""). And geom can take only some values, like bar or point.
How can I find out ...
10
Solved
I'm getting the standard
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle ...
Democritus asked 27/1, 2014 at 14:47
4
Solved
when I accept arguments how do I check if two show up at the same time without having a compound conditional
i.e.
#!/usr/bin/python
import random, string
import mymodule
import sys
z = ' '.join(...
4
Solved
I want to pass all the arguments passed to a function(func1) as arguments to another function(func2) inside func1
This can be done with *args, *kwargs in the called func1 and passing them down to f...
8
Solved
I have a Python function which takes several arguments. Some of these arguments could be omitted in some scenarios.
def some_function (self, a, b, c, d = None, e = None, f = None, g = None, h = No...
Athodyd asked 2/3, 2012 at 20:30
11
Solved
It is surprising me that I do not find the answer after 1 hour search for this.
I would like to pass an array to my script like this:
test.sh argument1 array argument2
I DO NOT want to put this ...
3
Solved
I'm trying to run an Icecast stream using a simple Python script to pick a random song from the list of songs on the server. I'm looking to add a voting/request interface, and my host allows use of...
24
Solved
I have a problem with the transfer of the variable insurance_mode by the decorator. I would do it by the following decorator statement:
@execute_complete_reservation(True)
def test_booking_gta_obje...
Straka asked 8/5, 2011 at 17:40
5
Solved
Consider these two function definitions:
void foo() { }
void foo(void) { }
Is there any difference between these two? If not, why is the void argument there? Aesthetic reasons?
Forgiving asked 9/9, 2008 at 0:48
6
Solved
I read here that in C void foo() means a function foo taking an unspecified number of arguments of unspecified type.
Can anyone give me or point me to an example where a C function takes an unspeci...
Chug asked 27/2, 2014 at 16:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.