...
/Command-Line Options and the std.getopt Module
Command-Line Options and the std.getopt Module
In this lesson, you will learn about command-line options and the std.getopt module.
We'll cover the following...
In the previous lesson, you learned all there is to know about the parameters and the return value of main()
. However, parsing the arguments is a repetitive task. The std.getopt
module is designed to help with parsing the command line options of programs.
Command-line options #
Some parameters like “world” and “hello” are purely data for the program to use. Other kinds of parameters are called command-line options and are used ...
Access this course and 1400+ top-rated courses and projects.