Skip to content

Commit

Permalink
Merge pull request #18 from jack1130/master
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinTerry committed Aug 9, 2023
2 parents a94f4c0 + bb1a882 commit f98d4db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 34 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/auto-test.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
run: rm -r dist

test:
if: false
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -92,7 +93,7 @@ jobs:
release:
runs-on: ubuntu-latest

needs: test
needs: build

if: startsWith(github.ref, 'refs/tags/')

Expand Down
10 changes: 7 additions & 3 deletions hust_login/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
from . import HustPass
from ._cli import _show_usage,_tasker
import logging
logging.basicConfig(level=logging.INFO,\
format='[%(levelname)s] %(message)s')

def main():
try:
opts, args = getopt(sys.argv[1:],'U:P:f:o:hv',['autotest','help','version','inputformat'])
opts, args = getopt(sys.argv[1:],'U:P:f:o:hv',['autotest','help','version','inputformat','debug'])
except:
return _show_usage()

autotest = False
log_level = logging.INFO
fpath = None
opath = None
for opt,arg in opts:
Expand All @@ -29,6 +28,8 @@ def main():
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'example.json'),'r') as fp:
print(fp.read())
return 0
elif opt == '--debug':
log_level = logging.DEBUG
elif opt =='-U':
Uid = arg
elif opt == '-P':
Expand All @@ -39,6 +40,9 @@ def main():
opath = arg
else:
return _show_usage()

logging.basicConfig(level=log_level,\
format='[%(levelname)s] %(message)s')

header = None
if fpath is not None:
Expand Down

0 comments on commit f98d4db

Please sign in to comment.