eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'CmdLineParser':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: CmdLineParser


Inheritance:

   Object
   |
   +--CmdLineParser

Package:
stx:libbasic
Category:
System-Support-Command line
Version:
rev: 1.7 date: 2017/07/12 08:38:54
user: mawalch
file: CmdLineParser.st directory: libbasic
module: stx stc-classLibrary: libbasic

Class protocol:

parsing
o  parse: argv for: object


Instance protocol:

accessing
o  args

o  args: aCollection

o  cmdlineOptionHelp

o  options

o  options: something

error reporting
o  error: message option: option

o  errorOptionHasNoArgument: option

o  errorOptionRequiresArgument: option

initialization
o  collectOptionsFrom: anObject

parsing
o  parse
Parses argv array.
Returns array of unparsed (i.e. non-option) arguments

o  parse: aCollection
Parses argv array. Returns array of unparsed (i.e. non-option)
arguments

o  parse: argv for: object
Parses argv array. Returns array of unparsed (i.e. non-option)
arguments. Options are obtained from given object

o  parse: argv options: opts
Parses argv array. Returns array of unparsed (i.e. non-option)
arguments. Options are obtained from given object

printing & storing
o  printHelp

o  printHelpOn: stream

private
o  optionByLong: longName

o  optionByShort: shortName

o  parseArg: index
Parses arg at index. Returns an index of
next arg to be parsed.



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sat, 21 Jul 2018 07:51:50 GMT