Skip to content

Commit

Permalink
Modify Help Msg using suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
bjk7119 committed May 13, 2021
1 parent e4dce0b commit 8a0fb93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 36 deletions.
20 changes: 0 additions & 20 deletions src/fosslight_util/_help.py

This file was deleted.

23 changes: 7 additions & 16 deletions tests/test_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,16 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2021 LG Electronics Inc.
# SPDX-License-Identifier: Apache-2.0
from fosslight_util._help import PrintHelpMsgBase

_HELP_MESSAGE_TEST = """
Usage Test [Test] <Test>
Test Test Test
"""


class PrintHelpMsg(PrintHelpMsgBase):
def print_help_msg(self):
super().print_help_msg()
print(_HELP_MESSAGE_TEST)


helpMsg = PrintHelpMsg()
from fosslight_util.help import PrintHelpMsg


def main():
_HELP_MESSAGE_TEST = """
Usage Test [Test] <Test>
Test Test Test
"""
helpMsg = PrintHelpMsg(_HELP_MESSAGE_TEST)
helpMsg.print_help_msg()

if __name__ == '__main__':
Expand Down

0 comments on commit 8a0fb93

Please sign in to comment.