diff --git a/osc/commandline.py b/osc/commandline.py index e953d511..12ca969a 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -165,6 +165,17 @@ class Osc(cmdln.Cmdln): else: return conf.config['apiurl'] + def do_version(self, subcmd, opts): + """ + Give version of osc binary + + usage: + osc version + """ + + print(get_osc_version()) + + def do_init(self, subcmd, opts, project, package=None, scm_url=None): """ Initialize a directory as working copy