Updated -info to -v and rolled out v1.4.1

This commit is contained in:
alichtman
2018-05-29 23:15:39 -04:00
parent a0f3cd41a9
commit 1bd852c9bd
3 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
class Constants:
PROJECT_NAME = 'stronghold'
VERSION = '1.4'
VERSION = '1.4.1'
AUTHOR_GITHUB = 'alichtman'
AUTHOR_FULL_NAME = 'Aaron Lichtman'
DESCRIPTION = "Securely configure your Mac from the terminal."
BIN
View File
Binary file not shown.
+6 -7
View File
@@ -350,18 +350,17 @@ CONTEXT_SETTINGS = dict(help_option_names=['-h', '-help'])
@click.command(context_settings=CONTEXT_SETTINGS)
@click.option('-lockdown', is_flag=True, default=False, help="Set secure configuration without user interaction.")
@click.option('-info', is_flag=True, default=False, help='Display version and author information and exit.')
def cli(lockdown, info):
@click.option('-v', is_flag=True, default=False, help='Display version and author information and exit.')
def cli(lockdown, v):
"""Securely configure your Mac.
Developed by Aaron Lichtman -> (Github: alichtman)"""
# Print author and version information and exit
if info:
print('stronghold v{0} by {1} -> Github: {2}\nSource Code: {3}'.format(Constants.VERSION,
Constants.AUTHOR_FULL_NAME,
Constants.AUTHOR_GITHUB,
Constants.URL[0]))
if v:
print('stronghold v{0} by {1} -> Github: {2}'.format(Constants.VERSION,
Constants.AUTHOR_FULL_NAME,
Constants.AUTHOR_GITHUB,))
sys.exit()
# Lockdown