mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-17 04:43:17 +00:00
add sanitizedArguments to SOGoTool
sanitizedArguments are the arguments received on the CLI minus those that are part of the NSArgumentDomain For example: sogo-tool user-preferences set sogo1 -p /tmp/creds Vacation -f /tmp/json arguments would contain: @"set", @"sogo1", @"-p", @"/tmp/creds", @"Vacation", @"-f", @"/tmp/json" sanitizedArguments would contain : @"set", @"sogo1", @"Vacation"
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
{
|
||||
BOOL verbose;
|
||||
NSArray *arguments;
|
||||
NSArray *sanitizedArguments; /* arguments w/o args from NSArgumentDomain */
|
||||
}
|
||||
|
||||
+ (NSString *) command;
|
||||
@@ -40,6 +41,7 @@
|
||||
verbose: (BOOL) isVerbose;
|
||||
|
||||
- (void) setArguments: (NSArray *) newArguments;
|
||||
- (void) setSanitizedArguments: (NSArray *) newArguments;
|
||||
- (void) setVerbose: (BOOL) newVerbose;
|
||||
- (BOOL) run;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user