Skip to content

Commit cea5af9

Browse files
authored
Merge pull request #1 from ctctully1/issue4
Usage for no options added and readme updated
2 parents 52400cd + 9369bd1 commit cea5af9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LiveData Migrator Diagnostics UI
22

3-
Script will parse LiveData Migrator diagnostic logs and
3+
Script will parse LiveData Migrator diagnostic logs and
44
talkbacks and create a UI.
55

66
```
@@ -38,13 +38,13 @@ python3 diagnostics-ui.py --ingest diag-set-1 --serve talkback-LIVEDATA_MIGRATOR
3838
To process a talkback and start web server, diagnostic set will be identified as talkback-LIVEDATA_MIGRATOR-20230509113117-diag.wandisco.com as --ingress is not set
3939

4040
```
41-
python3 diagnostics-ui.py --serve --tarball talkback-LIVEDATA_MIGRATOR-20230509113117-diag.wandisco.com.tar.gz
41+
python3 diagnostics-ui.py --serve --tarball talkback-LIVEDATA_MIGRATOR-20230509113117-diag.wandisco.com.tar.gz
4242
```
4343

4444
To start the web server and server existing data sets:
4545

4646
```
47-
python3 diagnostics-ui.py
47+
python3 diagnostics-ui.py --serve
4848
```
4949

5050
By default directory used to store files is python.workspace in the current working directory.

diagnostics-ui.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,11 @@ def main():
13271327
parser.add_argument("files", nargs="*")
13281328
args = parser.parse_args()
13291329

1330+
# if no args print README and exit
1331+
if len(sys.argv) == 1:
1332+
parser.print_help()
1333+
sys.exit(0)
1334+
13301335
# First do some args sanity.
13311336
process_args(args)
13321337

0 commit comments

Comments
 (0)