瀏覽代碼

add version option to the option parser

Helmut Pozimski 11 年之前
父節點
當前提交
fbe33682ab
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      stdd

+ 1 - 1
stdd

@@ -28,7 +28,7 @@ parameters, only 3 are currently defined:
 	* --config (path to configuration file)
 
 """
-parser = OptionParser(prog="stdd", add_help_option=True)
+parser = OptionParser(prog="stdd", version="%prog 0.9", add_help_option=True)
 parser.add_option("-d", "--daemon", action="store_true", dest="daemon",
 	help="run stdd as daemon")
 parser.add_option("-u", "--user", dest="user", help="define an unprivileged \