Capitalize comments

This commit is contained in:
Micah Lee 2017-04-17 19:38:42 -07:00
parent 18ad436ee2
commit 1519f3693d

View File

@ -53,11 +53,11 @@ def main():
strings.load_strings(helpers) strings.load_strings(helpers)
print(strings._('version_string').format(helpers.get_version())) print(strings._('version_string').format(helpers.get_version()))
# start the Qt app # Start the Qt app
global qtapp global qtapp
qtapp = Application() qtapp = Application()
# parse arguments # Parse arguments
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('--local-only', action='store_true', dest='local_only', help=strings._("help_local_only")) parser.add_argument('--local-only', action='store_true', dest='local_only', help=strings._("help_local_only"))
parser.add_argument('--stay-open', action='store_true', dest='stay_open', help=strings._("help_stay_open")) parser.add_argument('--stay-open', action='store_true', dest='stay_open', help=strings._("help_stay_open"))
@ -74,7 +74,7 @@ def main():
stay_open = bool(args.stay_open) stay_open = bool(args.stay_open)
debug = bool(args.debug) debug = bool(args.debug)
# validation # Validation
if filenames: if filenames:
valid = True valid = True
for filename in filenames: for filename in filenames:
@ -84,19 +84,19 @@ def main():
if not valid: if not valid:
sys.exit() sys.exit()
# start the onionshare app # Start the OnionShare app
web.set_stay_open(stay_open) web.set_stay_open(stay_open)
app = OnionShare(debug, local_only, stay_open) app = OnionShare(debug, local_only, stay_open)
# clean up when app quits # Clean up when app quits
def shutdown(): def shutdown():
app.cleanup() app.cleanup()
qtapp.aboutToQuit.connect(shutdown) qtapp.aboutToQuit.connect(shutdown)
# launch the gui # Launch the gui
gui = OnionShareGui(qtapp, app, filenames) gui = OnionShareGui(qtapp, app, filenames)
# all done # All done
sys.exit(qtapp.exec_()) sys.exit(qtapp.exec_())
if __name__ == '__main__': if __name__ == '__main__':