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:
Jean Raby
2013-01-07 14:54:11 -05:00
parent b838734756
commit 6f8d8394df
2 changed files with 44 additions and 0 deletions
+2
View File
@@ -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;