Skip to content

steelwheels/Cobalt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cobalt

Introduction

The cobalt framework is used to analyze command line options and arguments for console application

Copyright

Copyright (C) 2018-2022 Steel Wheels Project. This software is distributed under GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.

Features

Sub command support

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]

Sub argument support

The special option '--' is used to present the end of normal command line. The command line string after '--' will be treated as sub arguments.

Command line format

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

Required software

This software depend on the following framework:

Related Links

About

The cobalt framework is used to analyze command line options and arguments for console application

Resources

License

Stars

Watchers

Forks

Packages

No packages published