Top "Argv" questions

Argument vector containing the arguments passed in from the command line when starting a program.

from sys import argv - what is the function of "script"

I am reading "Learn Python the Hard Way" and was confused by the "script" part of the second line. from …

python argv
how to change the name of a Java application process?

When executing a Java application the process name given to it is usually java.exe or javaw.exe. But how …

java process argv
Argv - String into Integer

I'm pretty new at python and I've been playing with argv. I wrote this simple program here and getting an …

python argv
Passing Argument 1 discards qualifiers from pointer target type

My main function is as follows: int main(int argc, char const *argv[]) { huffenc(argv[1]); return 0; } The compiler returns the …

c main argv
python: sys.argv[0] meaning in official documentation

Quoting from docs.python.org: "sys.argv The list of command line arguments passed to a Python script. argv[0] is …

python argv sys
Using getopt in C with non-option arguments

I'm making a small program in C that deals with a lot of command line arguments, so I decided to …

c arguments argv getopt getopt-long
Self concatenate strings on csh

I need to concatenate partial content from argv to one of my variable. I will show you my code: #!/bin/…

string shell concatenation csh argv
python command line arguments in main, skip script name

This is my script def main(argv): if len(sys.argv)>1: for x in sys.argv: build(x) if __…

python for-loop command-line-arguments argv sys
Char isn't converting to int

For some reason my C program is refusing to convert elements of argv into ints, and I can't figure out …

c argv
How to pass sys.argv[n] into a function in Python

I am trying to pass "sys.argv[1]" into a function. #!/usr/bin/env/ python import sys def main(): test(sys.…

python function argv sys