The cobalt framework is used to analyze command line options and arguments for console application
Copyright (C) 2018-2022 Steel Wheels Project. This software is distributed under GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
This framework supports sub command on the command line arguments. This is syntax of command line which has sub command.
command sub-command [options] [arguments]
The special option '--'
is used to present the end of normal command line. The command line string after '--'
will be treated as sub arguments.
The command line arguments are classified:
--opt
: Long name option. The "opt" matched with a word-o
: Short name option. The "o" matched with an alphabet. If multiple characters follows the option, the string except the 1st character is recognized as a option parameter. (ex. "-abc" is treated as "-a" option and parameter "bc" for it.)--
: The special option. Command line arguments after this option is treated as sub arguments.word
: Normal argument. It is not option, This will be option parameter or command line argument
This software depend on the following framework:
- Steel Wheels Project: Main page of this project
- GitHub Repository: Software repository.