File: commandline.h

package info (click to toggle)
librudiments0 0.27-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,528 kB
  • ctags: 2,284
  • sloc: cpp: 14,657; sh: 7,547; ansic: 2,664; makefile: 945; xml: 15
file content (29 lines) | stat: -rw-r--r-- 759 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 1999-2002 David Muse
// See the COPYING file for more information.

#ifndef RUDIMENTS_COMMANDLINE_H
#define RUDIMENTS_COMMANDLINE_H

#include <rudiments/private/commandlineincludes.h>

// The commandline class provides methods for parsing command line arguments.

class commandline {
	public:
			commandline(int argc, const char **argv);
			~commandline();

		char	*value(const char *arg) const;
				// Returns the value of "arg" (which is assumed
				// to be the next item on the command line
				// after "arg").
		bool	found(const char *arg) const;
				// Returns 1 if "arg" was found and 0 
				// if it was not found.  This is useful for
				// processing command line switches.

	#include <rudiments/private/commandline.h>

};

#endif