#region Using Directives
using System;
#endregion
namespace FileSync.SyncConsole{
/// <summary>
/// Utility class for FileSync.SyncConsole.
/// </summary>
public class Utility
{
#region Constructor
public Utility()
{
}
#endregion
#region Private Methods
#endregion
#region Public Methods
/// <summary>
/// Shows the usage for FileSync.
/// </summary>
/// <returns>Usage information.</returns>
public string PrintUsage ()
{
string usage = "";
// define usage
usage += "Usage: filesync [options] sourceDirectory destinationDirectory\r\n\r\n";
usage += "\texample - Win32: filesync [-a] c:\\dir1 d:\\dir2\r\n";
usage += "\texample - *nix: filesync [-a] /home/user/dev /mnt/nfs/user/dev\r\n";
usage += "\r\nOptions:\r\n\r\n";
usage += "\t-a = Sync All Files and Directories between source and destination.\r\n";
usage += "\t-p = Pause after sync to show status.\r\n";
return usage;
}
#endregion
}
}
|