Skip to content

Commit 3707f4d

Browse files
committed
Fix fahctl usage
1 parent 6d889a4 commit 3707f4d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Folding@home Client Changelog
33

44
## v8.4.4
55
- Acquire client DB lock on startup. #269
6+
- Added ``fahctl`` command line client control script. #119
67

78
## v8.4.3
89
- Start Linux client after DNS service. (Marcos Mello)

scripts/fahctl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
'Folding@home v8 Client command line control'
23

34
import sys
45
import argparse
@@ -19,8 +20,7 @@ Examples:
1920
fahctl pause
2021
'''
2122

22-
parser = argparse.ArgumentParser(
23-
'Folding@home v8 Client command line control',
23+
parser = argparse.ArgumentParser(description = __doc__,
2424
formatter_class = argparse.RawDescriptionHelpFormatter, epilog = epilog)
2525

2626
parser.add_argument('command', choices = ['fold', 'pause', 'finish', 'state'],
@@ -34,7 +34,7 @@ args = parser.parse_args()
3434

3535

3636
# Connect
37-
ws = create_connection('ws://%s/api/websocket' % args.address)
37+
ws = create_connection(f'ws://{args.address}/api/websocket')
3838

3939

4040
# Send command

0 commit comments

Comments
 (0)