Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
424
Issues
424
List
Boards
Labels
Service Desk
Milestones
Merge Requests
67
Merge Requests
67
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
Kea
Commits
90097f31
Commit
90097f31
authored
Jan 31, 2019
by
Michal Nowikowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#372
,
!181
] hammer: added printing help when no command is provided
parent
8b1f0055
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
hammer.py
hammer.py
+5
-2
No files found.
hammer.py
View file @
90097f31
...
@@ -1364,7 +1364,7 @@ def parse_args():
...
@@ -1364,7 +1364,7 @@ def parse_args():
args
=
main_parser
.
parse_args
()
args
=
main_parser
.
parse_args
()
return
args
return
args
,
main_parser
def
list_supported_systems
():
def
list_supported_systems
():
...
@@ -1547,7 +1547,7 @@ def build_cmd(args):
...
@@ -1547,7 +1547,7 @@ def build_cmd(args):
def main():
def main():
"""Main function - parse args and invoke proper command."""
"""Main function - parse args and invoke proper command."""
args = parse_args()
args
, parser
= parse_args()
# prepare logging
# prepare logging
level = logging.INFO
level = logging.INFO
...
@@ -1585,6 +1585,9 @@ def main():
...
@@ -1585,6 +1585,9 @@ def main():
elif args.command == "
destroy
":
elif args.command == "
destroy
":
destroy_system(args.directory)
destroy_system(args.directory)
else:
parser.print_help()
if __name__ == '__main__':
if __name__ == '__main__':
main()
main()
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