Skip to content

Commit

Permalink
Added the --no_beep feature
Browse files Browse the repository at this point in the history
(cherry picked from commit e716cf4)
  • Loading branch information
josiahseaman committed Feb 1, 2019
1 parent 84e6c57 commit b183324
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions DDV/fluentdna.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ def done(args, output_dir):
Otherwise system exit."""
if args.run_server:
run_server(output_dir)
beep()
hold_console_for_windows()
if __name__ == "__main__":
sys.exit(0)
if not args.no_beep:
beep()
hold_console_for_windows()
if __name__ == "__main__":
sys.exit(0)


def ddv(args):
Expand Down Expand Up @@ -465,6 +466,10 @@ def main():
'Custom layout must be formatted as two integer lists of euqal length.\n'
'For example: --custom_layout="([10,100,100,10,3,999], [0,0,0,3,18,108])"',
dest="custom_layout")
parser.add_argument('-bb', '--no_beep',
action='store_true',
help="Don't make a beep sound when a job completes.",
dest='no_beep')
parser.add_argument('-n', '--update_name', dest='update_name', help='Query for the name of this program as known to the update server', action='store_true')
parser.add_argument('-v', '--version', dest='version', help='Get current version of program.', action='store_true')

Expand Down

0 comments on commit b183324

Please sign in to comment.