• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDECore

KCmdLineOptions Struct Reference

Structure that holds command line options. More...

#include <kcmdlineargs.h>

List of all members.


Public Attributes

const char * def
const char * description
const char * name

Detailed Description

Structure that holds command line options.

This class is intended to be used with the KCmdLineArgs class, which provides convenient and powerful command line argument parsing and handling functionality.

See also:
KCmdLineArgs for additional usage information

Definition at line 40 of file kcmdlineargs.h.


Member Data Documentation

const char* KCmdLineOptions::def

The default value for the option, if it is not specified on the command line.

Definition at line 65 of file kcmdlineargs.h.

const char* KCmdLineOptions::description

The text description of the option as should appear in myapp --help.

This value should be wrapped with I18N_NOOP().

Definition at line 60 of file kcmdlineargs.h.

const char* KCmdLineOptions::name

The name of the argument as it should be called on the command line and appear in myapp --help.

Note that if this option starts with "no" that you will need to test for the name without the "no" and the result will be the inverse of what is specified. i.e. if "nofoo" is the name of the option and myapp --nofoo is called:

 KCmdLineArgs::parsedArgs()->isSet("foo"); // false

Definition at line 55 of file kcmdlineargs.h.


The documentation for this struct was generated from the following file:
  • kcmdlineargs.h

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal