aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwustho <benawiadha@gmail.com>2020-03-01 20:31:12 +0700
committerwustho <benawiadha@gmail.com>2020-03-01 20:31:12 +0700
commit7095419716f926c777419de8065202597795f539 (patch)
tree2b7d15dc7aa7f8534e85f06157b3b6ff1f9456e0
parent898fa943070b82580f402b32d9d11902f440a0fc (diff)
downloadepy-7095419716f926c777419de8065202597795f539.tar.gz
Fixed minor help message issue.
-rwxr-xr-xepy.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/epy.py b/epy.py
index d77ee3c..e174282 100755
--- a/epy.py
+++ b/epy.py
@@ -1195,10 +1195,7 @@ def main():
args += sys.argv[1:]
if len({"-h", "--help"} & set(args)) != 0:
- hlp = __doc__.rstrip()
- if "-h" in args:
- hlp = re.search("(\n|.)*(?=\n\nKey)", hlp).group()
- print(hlp)
+ print(__doc__.rstrip())
sys.exit()
loadstate()