Skip to content

Commit 36abd58

Browse files
committed
[options] version is in general options
1 parent e94aaa9 commit 36abd58

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

funk

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@ parser = ArgumentParser( prog = prog,
4848
epilog = epilog,
4949
formatter_class = RawTextHelpFormatter,
5050
add_help = False)
51-
parser.add_argument('--version', action='version', version='%(prog)s 1.0')
51+
5252
optinout = parser.add_argument_group( style.host("General options"),
5353
"Define mode and controls I/O.")
5454
optinout.add_argument("-h", "--help",
5555
action = "help",
5656
help = "show this help message and exit")
57+
optinout.add_argument('--version',
58+
action='version',
59+
version='%(prog)s 1.0')
5760
optinout.add_argument("-m", "--mode",
5861
dest = "mode",
5962
default = 'date',

0 commit comments

Comments
 (0)