Skip to content

Commit

Permalink
add version printing from the command line, change command line help …
Browse files Browse the repository at this point in the history
…usage string
  • Loading branch information
cvfosammmm committed Sep 25, 2020
1 parent 4ff1680 commit 9ee4dcc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setzer.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ from gi.repository import Gio

import sys
import gettext
import argparse

from setzer.workspace.workspace import Workspace
import setzer.workspace.workspace_viewgtk as view
Expand Down Expand Up @@ -182,6 +183,11 @@ class MainApplicationController(Gtk.Application):
self.quit()


argparser = argparse.ArgumentParser(usage='%(prog)s [OPTION...] [FILE...]')
argparser.add_argument('-V', '--version', action='version', version='@setzer_version@')
argparser.add_argument('file', nargs='*', help=argparse.SUPPRESS)
argparser.parse_args()

main_controller = MainApplicationController()
exit_status = main_controller.run(sys.argv)
sys.exit(exit_status)

0 comments on commit 9ee4dcc

Please sign in to comment.