summaryrefslogtreecommitdiff
path: root/xnt/commands/help.py
diff options
context:
space:
mode:
Diffstat (limited to 'xnt/commands/help.py')
-rw-r--r--xnt/commands/help.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/xnt/commands/help.py b/xnt/commands/help.py
deleted file mode 100644
index 79584be..0000000
--- a/xnt/commands/help.py
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env python
-"""Xnt Help Command"""
-
-# Xnt -- A Wrapper Build Tool
-# Copyright (C) 2012 Kenny Ballou
-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-
-# This program 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 General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-from xnt.basecommand import Command
-from xnt.status_codes import SUCCESS
-
-class HelpCommand(Command):
- """Help Command"""
- name = 'help'
- usage = """"""
- summary = 'Print Usage Summary'
- needs_build = False
-
- def run(self, arguments=None):
- """Invoke Help"""
- from xnt.commands import get_summaries
- from xnt import __version__, __license__
- commands = get_summaries()
- print(__version__)
- print(__license__)
- print("Available Commands:")
- for name, summary in commands:
- print(name)
- print("\t" + summary)
-
- return SUCCESS