cs50/submit50

Add -V and --version options

Closed this issue · 6 comments

Add -V and --version options

These exist already.

Below, though?

$ pip3 show submit50
Name: submit50
Version: 3.0.2
Summary: This is submit50, with which you can submit solutions to problems for CS50.
Home-page: https://github.com/cs50/submit50
Author: CS50
Author-email: sysadmins@cs50.harvard.edu
License: GPLv3
Location: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
Requires: termcolor, lib50, requests
Required-by: 

$ submit50 --version
usage: submit50 [-h] [-v] slug
submit50: error: too few arguments

$ submit50 -V
usage: submit50 [-h] [-v] slug
submit50: error: too few arguments

That output looks like an outdated version of submit50. Any chance you have multiple versions of submit50 installed somehow?

which submit50?

$ docker run --rm cs50/cli submit50 -V
submit50 3.0.2

Weird, seems I had 2.x still installed in such a way that neither pip nor pip3 were removing. rm'd manually!