1.2 Command-Line Arguments
Most programs process some input to produce some output; that’s pretty much the definition of computing. But how does a program get input data on which to operate? Some programs generate their own data, but more often, input comes from an external source: a file, a network connection, the output of another program, a user at a keyboard, command-line arguments, or the like. The next few examples will discuss some of these alternatives, starting with command-line arguments.
os package provides functions and other values for dealing with
the operating system in a platform-independent fashion. Command-line
arguments are available to a program in a variable named
is part of the
os package; thus its name ...