[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Support raw text on command description
commit 6b67368eb9b212cffc35b7edea56fdf5fb2ff52b
Author: juga0 <juga@xxxxxxxxxx>
Date: Thu Sep 6 17:00:41 2018 +0000
Support raw text on command description
---
sbws/util/parser.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sbws/util/parser.py b/sbws/util/parser.py
index 2264d7c..7ff39d2 100644
--- a/sbws/util/parser.py
+++ b/sbws/util/parser.py
@@ -4,7 +4,7 @@ import sbws.core.generate
import sbws.core.stats
from sbws import __version__
-from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
+from argparse import ArgumentParser, RawTextHelpFormatter
import os
@@ -14,7 +14,7 @@ def _default_dot_sbws_dname():
def create_parser():
- p = ArgumentParser(formatter_class=ArgumentDefaultsHelpFormatter)
+ p = ArgumentParser(formatter_class=RawTextHelpFormatter)
p.add_argument(
'--version', action='version', help='sbws version',
version='{}'.format(__version__))
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits