13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFObject.h"
#import "OFConstantString.h"
/*!
* @class OFOptionsParser OFOptionsParser.h ObjFW/OFOptionsParser.h
*
* @brief A class for parsing the program options specified on the command line.
*/
@interface OFOptionsParser: OFObject
{
|
>
>
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFObject.h"
#import "OFConstantString.h"
OF_ASSUME_NONNULL_BEGIN
/*!
* @class OFOptionsParser OFOptionsParser.h ObjFW/OFOptionsParser.h
*
* @brief A class for parsing the program options specified on the command line.
*/
@interface OFOptionsParser: OFObject
{
|
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
/*!
* @brief Returns the argument for the last parsed option, or nil if the last
* parsed option takes no argument.
*
* @return The argument for the last parsed option
*/
- (OFString*)argument;
/*!
* @brief Returns the arguments following the last option.
*
* @return The arguments following the last option
*/
- (OFArray OF_GENERIC(OFString*)*)remainingArguments;
@end
|
|
>
>
|
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
/*!
* @brief Returns the argument for the last parsed option, or nil if the last
* parsed option takes no argument.
*
* @return The argument for the last parsed option
*/
- (nullable OFString*)argument;
/*!
* @brief Returns the arguments following the last option.
*
* @return The arguments following the last option
*/
- (OFArray OF_GENERIC(OFString*)*)remainingArguments;
@end
OF_ASSUME_NONNULL_END
|