Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
10eef388
Commit
10eef388
authored
Sep 20, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main: disp config in --version
parent
2db9c7bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
_version.py
hdlmake/_version.py
+1
-1
main.py
hdlmake/main.py
+7
-1
No files found.
hdlmake/_version.py
View file @
10eef388
"""Current HDLMake version"""
__version__
=
"3.2"
__version__
=
"3.2
dev1
"
hdlmake/main.py
View file @
10eef388
...
...
@@ -87,6 +87,12 @@ def _action_runner(modules_pool):
logging
.
info
(
"No command selected"
)
def
_get_version_string
(
prog
):
cmd
=
'win'
if
shell
.
check_windows_commands
()
else
'unx'
tool
=
'win'
if
shell
.
check_windows_tools
()
else
'unx'
return
"{} {} [tool:{} cmd:{}]"
.
format
(
prog
,
__version__
,
tool
,
cmd
)
def
_get_parser
():
"""This is the parser function, where options and commands are defined.
"""
...
...
@@ -145,7 +151,7 @@ def _get_parser():
parser
.
add_argument
(
'-v'
,
'--version'
,
action
=
'version'
,
help
=
"print the version of this program"
,
version
=
parser
.
prog
+
" "
+
__version__
)
version
=
_get_version_string
(
parser
.
prog
)
)
parser
.
add_argument
(
'-a'
,
'--all'
,
action
=
'store_true'
,
dest
=
"all_files"
,
help
=
"use all the listed files, do not solve the fileset"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment