From c1932c3747c0508d1eec1459a280f08c592730c5 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 13 Aug 2009 19:48:03 +0000 Subject: [PATCH] Monotone-Parent: 00072658b3ee1a9305a65aea8e14ca879c40baa0 Monotone-Revision: b69d1a243bbadf0a35b5d09c6693d77e06ee796b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-08-13T19:48:03 Monotone-Branch: ca.inverse.sogo --- Tools/SOGoToolBackup.m | 7 ++++++- Tools/sogo-tool.m | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Tools/SOGoToolBackup.m b/Tools/SOGoToolBackup.m index 5513dd2a4..2746b5a32 100644 --- a/Tools/SOGoToolBackup.m +++ b/Tools/SOGoToolBackup.m @@ -40,6 +40,11 @@ #import "NSDictionary+SOGoTool.h" #import "SOGoToolBackup.h" +/* TODO: + - respond to "--help backup" + - allow more than one user specifier on the command-line +*/ + @implementation SOGoToolBackup + (NSString *) command @@ -149,7 +154,7 @@ BOOL rc; NSString *identifier; - if ([arguments count] == 2) + if ([arguments count] > 1) { ASSIGN (directory, [arguments objectAtIndex: 0]); identifier = [arguments objectAtIndex: 1]; diff --git a/Tools/sogo-tool.m b/Tools/sogo-tool.m index 871c84392..001ea8186 100644 --- a/Tools/sogo-tool.m +++ b/Tools/sogo-tool.m @@ -31,6 +31,10 @@ #import "SOGoTool.h" +/* TODO: + - help for modules + - have a help syntax/mechanism similar to the one in monotone */ + @interface SOGoToolDispatcher : NSObject { NSMutableDictionary *tools;