Skip to content

Commit

Permalink
"update" now defaults to "-G"
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Dec 12, 2014
1 parent 1d741ca commit 8d5edd6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TradeDangerous, Copyright (C) Oliver "kfsone" Smith, July 2014
==============================================================================

v6.1.9 [wip]
. (kfsone) "-G" is now the default for "update"
. (kfsone) "--capacity" and "--ly-per" are now required "run" arguments
. (kfsone) "local --ly=0" now works as expected
. (kfsone) Tell the user when we rebulid the cache (-q to silence)
Expand Down
24 changes: 15 additions & 9 deletions commands/update_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import cache
import subprocess
import os
import sys
import pathlib

######################################################################
Expand Down Expand Up @@ -382,18 +383,23 @@ def run(results, cmdenv, tdb):
else:
cmdenv.startStation = place

if cmdenv.gui:
if cmdenv.gui or (not cmdenv.editor and not cmdenv.editing):
if not cmdenv.quiet:
print(
"NOTE:\n"
". The Update UI is still somewhat experimental.\n"
". Press CTRL-C here to abort editing, or else "
"just close the window to save.\n"
". Use '-q' to hide this message,\n"
". '-F' to make the update window appear infront "
"of Elite: Dangerous (Windowed),\n"
". '-A' to force all items to show if stuff is "
"missing from a station.",
file=sys.stderr
)
guidedUpdate(tdb, cmdenv)
return None

if not cmdenv.editor and not cmdenv.editing:
raise CommandLineError(
"The GUI for updates is currently experimental. "
"Either use one of the editors or specify the "
"--experimental-gui (--exp or -G for short) "
"flags.\n"
)

if not cmdenv.quiet and cmdenv.supply:
print("NOTE: '--supply' (-S) is deprecated.")

Expand Down

0 comments on commit 8d5edd6

Please sign in to comment.