2009-03-21 16:37:30 +00:00
|
|
|
#region Disclaimer / License
|
2015-01-20 21:44:52 +01:00
|
|
|
// Copyright (C) 2015, The Duplicati Team
|
|
|
|
|
// http://www.duplicati.com, info@duplicati.com
|
2009-03-21 16:37:30 +00:00
|
|
|
//
|
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
|
// version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
//
|
|
|
|
|
#endregion
|
|
|
|
|
using System;
|
2010-06-19 21:08:21 +00:00
|
|
|
namespace Duplicati.Library.Interface
|
2009-03-21 12:46:54 +00:00
|
|
|
{
|
2009-06-14 21:51:06 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// The interface used to describe a commandline argument
|
|
|
|
|
/// </summary>
|
2009-03-21 12:46:54 +00:00
|
|
|
public interface ICommandLineArgument
|
|
|
|
|
{
|
2009-06-14 21:51:06 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// A list of valid aliases, may be null or an empty array
|
|
|
|
|
/// </summary>
|
2009-03-21 12:46:54 +00:00
|
|
|
string[] Aliases { get; set; }
|
2009-06-14 21:51:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A long description of the argument
|
|
|
|
|
/// </summary>
|
2009-03-21 12:46:54 +00:00
|
|
|
string LongDescription { get; set; }
|
2009-06-14 21:51:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The primary name for the argument
|
|
|
|
|
/// </summary>
|
2009-03-21 12:46:54 +00:00
|
|
|
string Name { get; set; }
|
2009-06-14 21:51:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A short description of the argument
|
|
|
|
|
/// </summary>
|
2009-03-21 12:46:54 +00:00
|
|
|
string ShortDescription { get; set; }
|
2009-06-14 21:51:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The argument type
|
|
|
|
|
/// </summary>
|
2009-03-21 12:46:54 +00:00
|
|
|
CommandLineArgument.ArgumentType Type { get; set; }
|
2009-06-14 21:51:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A list of valid values, if applicable
|
|
|
|
|
/// </summary>
|
2009-03-21 12:46:54 +00:00
|
|
|
string[] ValidValues { get; set; }
|
2009-06-14 21:51:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The default value for the parameter
|
|
|
|
|
/// </summary>
|
2009-03-22 22:55:04 +00:00
|
|
|
string DefaultValue { get; set; }
|
2009-06-14 21:51:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Returns a localized string indicating the argument type
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Typename { get; }
|
2010-06-19 21:08:21 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A value indicating if the option is deprecated
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool Deprecated { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A message describing the deprecation reason and possible change suggestions
|
|
|
|
|
/// </summary>
|
|
|
|
|
string DeprecationMessage { get; set; }
|
2009-03-21 12:46:54 +00:00
|
|
|
}
|
|
|
|
|
}
|