Changeset - fef26609c4ee
[Not reviewed]
default
0 1 0
Laman - 6 years ago 2019-05-29 12:25:01

fix: a meaningful message when running without a command
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/morevna.py
Show inline comments
 
@@ -121,7 +121,9 @@ pServe.add_argument("-p","--port",type=i
 
pServe.add_argument("--host")
 
pServe.add_argument("-t","--tree",help="stored hash tree location")
 
pServe.add_argument("datafile")
 
pServe.set_defaults(func=serve)
 

	
 
args=parser.parse_args()
 
args.func(args)
 
try: args.func(args)
 
except AttributeError:
 
	parser.print_help()
0 comments (0 inline, 0 general)