mirror of
https://github.com/livingcomputermuseum/sImlac.git
synced 2026-01-14 15:46:19 +00:00
64 lines
1.7 KiB
C#
64 lines
1.7 KiB
C#
/*
|
|
This file is part of sImlac.
|
|
|
|
sImlac is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
sImlac 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 Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with sImlac. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
using System;
|
|
|
|
namespace imlac.Debugger
|
|
|
|
{
|
|
public class DebuggerFunction : Attribute
|
|
{
|
|
public DebuggerFunction(string commandName)
|
|
{
|
|
_commandName = commandName;
|
|
_usage = "<No help available>";
|
|
}
|
|
|
|
public DebuggerFunction(string commandName, string description)
|
|
{
|
|
_commandName = commandName;
|
|
_description = description;
|
|
}
|
|
|
|
public DebuggerFunction(string commandName, string description, string usage)
|
|
{
|
|
_commandName = commandName;
|
|
_description = description;
|
|
_usage = usage;
|
|
}
|
|
|
|
public string CommandName
|
|
{
|
|
get { return _commandName; }
|
|
}
|
|
|
|
public string Usage
|
|
{
|
|
get { return _usage; }
|
|
}
|
|
|
|
public string Description
|
|
{
|
|
get { return _description; }
|
|
}
|
|
|
|
private string _commandName;
|
|
private string _description;
|
|
private string _usage;
|
|
}
|
|
}
|