Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hdlmake
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Hdlmake
Commits
afc6e316
Commit
afc6e316
authored
13 years ago
by
Paweł Szostek
Browse files
Options
Downloads
Patches
Plain Diff
class for hint message printing
parent
71ab66a3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/help_printer.py
+40
-0
40 additions, 0 deletions
src/help_printer.py
with
40 additions
and
0 deletions
src/help_printer.py
0 → 100644
+
40
−
0
View file @
afc6e316
# -*- coding: utf-8 -*-
#
# Copyright (c) 2011 Pawel Szostek (pawel.szostek@cern.ch)
#
# This source code is free software; you can redistribute it
# and/or modify it in source code form under the terms of the GNU
# General Public License as published by the Free Software
# Foundation; either version 2 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, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
#
import
msg
as
p
class
HelpPrinter
():
@staticmethod
def
print_action_help
():
p
.
rawprint
(
"
`Action
'
variable was not specified
"
)
p
.
rawprint
(
"
Allowed values are:
\"
simulation
\"
or
\"
synthesis
\"
"
)
p
.
rawprint
()
p
.
rawprint
(
"
This variable in a manifest file is necessary for Hdlmake
"
\
"
to be able to know what to do with the given modules
'
structure.
"
)
HelpPrinter
.
__more
()
@staticmethod
def
__more
():
p
.
rawprint
(
"
For more help type `hdlmake --help
'
"
\
"
or visit http://www.ohwr.org/projects/hdl-make
"
)
if
__name__
==
"
__main__
"
:
hp
=
HelpPrinter
hp
.
print_action_help
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment